public interface CellStyleSuffixes
stateful canvases
,
grid cells support being styled to reflect the current state of the cell by generating a css
styleName from the specified baseStyle
, plus stateful suffixes. There are four independent boolean states, which are combined in the order given:
CSS Class Applied | Description | Example |
baseStyle | Default css style for the cell | cell |
baseStyle+Dark | Suffix
for alternating color bands when alternateRowStyles is
true | cellDark |
baseStyle+Disabled | Whether the cell is disabled; enable by setting the "enabled" flag on record returned by getCellRecord. | cellDisabled |
baseStyle+Selected |
Whether the cell is selected . Only applies if showSelectedStyle is true |
cellSelected |
baseStyle+Over |
Mouse is over this record. Only applies if showRollOver is true |
cellOver |
Combined styles | ||
baseStyle+Disabled+Dark | Disabled style applied to cells in alternate color bands. | cellDisabledDark |
baseStyle+Selected+Over | Style applied to selected cells as the mouse rolls over them. | cellSelectedOver |
baseStyle+Selected+Dark | Selected style applied to cells in alternate color bands. | cellSelectedDark |
baseStyle+Over+Dark | Style applied to alternate color band cells as the mouse rolls over them. | cellOverDark |
baseStyle+Selected+Over+Dark | Style applied to selected, alternate color band cells as the mouse rolls over them. | cellSelectedOverDark |