简体   繁体   English

Flex:如何在ComboBox中更改组件标签/所选项目的文本颜色?

[英]Flex: How to change text color of component label/selected item in ComboBox?

When I set style color, it changes both the text color for the selected item/component label and the text in the dropdown menu. 设置样式颜色时,它会同时更改所选项目/组件标签的文本颜色和下拉菜单中的文本。

color 颜色
Type: uint Format: Color CSS Inheritance: yes 类型:uint格式:颜色CSS继承:是
Color of text in the component, including the component label. 组件中文本的颜色,包括组件标签。 The default value is 0x0B333C. 默认值为0x0B333C。

I would really like the label to be white and the text to be black. 我真的希望标签为白色,文本为黑色。 Is that possible? 那可能吗?

I found the solution: 我找到了解决方案:

ComboBox {
   iconColor: #FFFFFF;
   textInputStyleName: cboHeaderColor;
}

.cboHeaderColor {
    color: #FFFFFF;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM