setStyle(range, style, fireEvent);
range. PP.Ui.TabSheetRange. Cell range.
style. PP.Ui.TabSheetCellStyle. Cell style.
fireEvent. Boolean. Indicates whether StyleChanged/StyleChanging events are generated. Default value is True.
The setStyle method determines style for the selected cell range.
To execute the example, the HTML page must contain the TabSheet component named tabSheet (see Example of Creating the TabSheet Component). Set style:
// Get table data model var model = tabSheet.getModel(); // Get first style var style = model.getStyleByIndex(0); // Set range var range = tabSheet.getRange(1, 1, 5, 3); // Set new style for range model.setStyle(range, style, false);
After executing the example a cell range style is set.
See also: