SMART datagrid v.1 > Classes > GridBody
Dynamic Style Set which is applied to all columns.
It is used when need to apply the same dynamic style to several columns. It is applied later than rowDynamicStyles and earlier than Column Dynamic Style.
grid.body().setCellDynamicStyles([{
expression: "value > 100",
styles: {
background: "#ff0000",
foreground: "#fff"
}
}]);
// Can also load from GridBase.loadStyles.
grid.loadStyles({
body: {
cellDynamic: [{
expression: "value > 100",
styles: {
background: "#ff0000",
foreground: "#fff"
}
}]
}
};