PDA

View Full Version : How to set the text color of a combobox readonly field



megadruck
15 Mar 2017, 12:19 AM
Hi

How to set the color of the EmptyText Output ?



xtype: 'combobox',queryMode: 'local',
name: 'md_user',
dataIndex: 'md_user',
triggerAction:'all',
fieldLabel: me.snippets.edit.user,
emptyText: me.snippets.edit.nouser,
store: me.userStore,
displayField: 'name',
valueField: 'id',
editable:false,
allowBlank:false,
required: true,
id:'md_user'



This just works with background



#md_user .x-form-empty-field,{
background:#f89d9d !important;
color:#000 !important;
}

Gary Schlosberg
15 Mar 2017, 9:51 AM
Here's a thread that should help:
https://www.sencha.com/forum/showthread.php?291088