colFormat
|
Table Properties for general information about the Table component. |
Specifies the Table column data format as an array. The attribute can be referenced using the column header or number. Column and row indices start at 0.
Type
- Array
-
Array of formats. See Add Data Format for information on how to specify formats.
StyleConstant.DATE_FORMATdate display
StyleConstant.DECIMAL_FORMATnumber display
StyleConstant.MESSAGE_FORMATtext display
StyleConstant.PERCENT_FORMATfraction display
StyleConstant.CURRENCY_FORMATlocale-adapting currency display
Example
colFormat[5] = [StyleConstant.DATE_FORMAT, "yy-MMMM-dd"];
colFormat['Total'] = [StyleConstant.DECIMAL_FORMAT, "#,###.00"];
|
Either syntax below can be used in component script:
For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required. |