SMART datagrid v.1 > Classes > GridBase
适用通过参数styles而传递的网格所有区域的样式组。
grid.loadStyles({
header: {
background: "#100000ff"
fontBold: true
},
body: {
updated: {
background: "#10000000"
},
...
},
...
});
// 获取和适用被储存于外部的主题。
grid.loadStyles(deptCode == 'dept100' ? theme100 : defaultTheme);