如何将Sencha Ext JS 7中的字段标签颜色设置为项目中的
color:"white"
作为显示字段
{
fieldLabel: "Inizio",
itemId: "dataId",
xtype: "displayfield",
labelAlign: "left",
format: "d-m-Y",
fieldStyle: { color: "white", position: "relative", right: "58px" },
};
您可以使用字段的
labelStyle
配置来格式化标签,请参阅文档。它接受 CSS 样式,因此可以像这样使用它:
{
fieldLabel: 'Inizio',
labelStyle: 'color: white;',
...
}