var instance; // Type: wijmo.grid.IWijgridOptions; var value; // Type: any value = instance.cellStyleFormatter;
var cellStyleFormatter : any;
This function is called each time wijgrid needs to change cell appearence, for example, when the current cell position is changed or cell is selected. Can be used for customization of cell style depending on its state.
var instance; // Type: wijmo.grid.IWijgridOptions; var value; // Type: any value = instance.cellStyleFormatter;
var cellStyleFormatter : any;
// Make the text of the current cell italic. $("#element").wijgrid({ highlightCurrentCell: true, cellStyleFormatter: function(args) { if ((args.row.type & wijmo.grid.rowType.data)) { if (args.state & wijmo.grid.renderState.current) { args.$cell.css("font-style", "italic"); } else { args.$cell.css("font-style", "normal"); } } } });