TabSheetModel.setStyle

Syntax

setStyle(range, style, fireEvent);

Parameters

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.

Description

The setStyle method determines style for the selected cell range.

Example

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:

TabSheetModel