[]
Initializes a new instance of the FlexGridStyle class.
The FlexGrid to style.
Initialization options for the FlexGridStyle.
Applies the specified style (inline or class-based) to a cell range
CellRange to apply the style to
css style object to apply to the cells
whether to add style as inline or create a new class
Toggles the specified CSS classname on the provided cell range
CellRange to apply the style to
css ClassName to apply on provided CellRange
whether to add class or remove class, skipping this parameter toggle the provided class
Implements a styling API for FlexGrid controls.
To style cells in a FlexGrid control, create an instance of the FlexGridStyle and pass the grid as a parameter to the constructor. For example:
import { FlexGrid } from '@mescius/wijmo.grid'; import { FlexGridStyle } from '@mescius/wijmo.grid.style'; let theGrid = new FlexGrid('#theGrid'); // create the grid let flexGridStyle = new FlexGridStyle(theGrid); // create an object of FlexGridStyle
The FlexGridStyle class depends on the wijmo.grid module.
The example below shows how you can use FlexGridStyle to add/remove styles on FlexGrid control:
Example