我正在使用不可编辑的 objectPicker 并设置空文本:
this.statePicker = Ext.create('Rally.ui.picker.MultiObjectPicker', {
modelType: 'State',
id: 'statePicker',
matchFieldWidth: false,
editable:false,
emptyText: "Select...",
placeholderText: "Select...",
width: 80,
listeners: {
select: this._getFilter,
deselect: this._getFilter,
scope: this
},
});
我想将 emptyText (emptyText: "Select...",) 格式化为带有背景色的白色。使用下面的 CSS,背景颜色显示完美,但文本颜色保持灰色。
.x-form-empty-field {
color: #FFFFFF !important;
background-color: #085478;
}
我尝试过其他类,但没有改变字体。它保持灰色!请帮忙?