TdClassNames is a collection of utility functions that can be used
in column definitions as the tdClassName attribute.
These functions typically combine cell data and summary information to produce a meaningful class name.
They can take the following arguments:
cellData{Object} The data for the cellcolumnSummary{Object} The summary for the columncolumn{Object} The definition for the columnrowData{Object} The data for the rowhighlightedColumn{Boolean} true if this column is highlightedhighlightedRow{Boolean} true if this row is highlightedrowNumber{Number} The row numbertableData{Array} the data for the whole tablecolumns{Array} the definitions for all columns
- Source:
Methods
(static) maxClassName(cellData, props) → {String}
Adds highlight-max to the cells that match max in the summary.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cellData |
Any | the data for the cell |
||||||||||||
props |
Object | Additional props for the cell Properties
|
- Source:
Returns:
classnames
- Type
- String
(static) minClassName(cellData, props) → {String}
Adds highlight-min to the cells that match min in the summary.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cellData |
Any | the data for the cell |
||||||||||||
props |
Object | Additional props for the cell Properties
|
- Source:
Returns:
classnames
- Type
- String
(static) minMaxClassName(cellData, props) → {String}
Adds highlight-min-max and one of highlight-min, highlight-max to the
cells that match min and max in the summary
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cellData |
Any | the data for the cell |
||||||||||||
props |
Object | Additional props for the cell Properties
|
- Source:
Returns:
classnames
- Type
- String