Styling and Appearance
jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The
base stylesheet creates the styles related to the widget's layout like margin, padding,
border-width, position. The second css file applies the widget's colors and backgrounds.
The jqx.base.css should be included before the second CSS file.
Below is the list of CSS classes used by jqxPivotGrid.
- jqx-widget - applied to the pivot grid.
- jqx-widget-content - applied to the pivot grid.
- jqx-pivotgrid - applied to the pivot grid.
- jqx-pivotgrid-item - applied to the pivot grid items.
- jqx-pivotgrid-expand-button - applied to the expand buttons in the rows and columns.
- jqx-pivotgrid-collapse-button - applied to the collapse buttons in the rows and columns.
- jqx-pivotgrid-menu-button - applied to the pivot grid button displayed when you hover a row or column.
- jqx-pivotgrid-sortasc-icon - applied to the pivot grid sort ascending icon.
- jqx-pivotgrid-sortdesc-icon - applied to the pivot grid sort descending menu icon.
- jqx-pivotgrid-sortremove-icon - applied to the pivot grid sort remove icon.
- jqx-pivotgrid-sortsettings-icon - applied to the pivot grid settings icon.
When you create a custom style with colors and backgrounds for jqxPivotGrid, you
need to do the following:
- Add the above CSS classes related to jqxPivotGrid
- After each CSS class, add your theme name.
For example:
jqx-pivotgrid-light
- To apply your custom style to jqxPivotGrid, you need to set its 'theme' property(option)
to point to your theme name string.