Constructors
Name | Type | Description |
---|---|---|
key |
Object |
Id for the column |
label |
string |
Header label of the column |
dataType |
Object |
Data type of the data in this column |
Members
-
visible
-
Flag, if column is visible
Methods
-
setDataType(dataType)
-
Set the data type of the column.
Name Type Description dataType
DataType the new data type (STRING, NUMBER, CUSTOM or CHECKBOX)
-
setKey(key)
-
Set the key (the technical name) of this column
Name Type Description key
string the new key
-
setLabel(label)
-
Set the label of the column
Name Type Description label
string the new label
-
setSortOrder(sortOrder)
-
Sets the sort order.
Name Type Description sortOrder
string Possible values: 0, 1 (ascending), -1 (descending) (Use: 2,-2 / 3,-3 / ... for multi column sort). This method is only
to be used with remote sort. -
setVisible(visible)
-
Sets wether or not the column should be visible.
Useful when you need columns to group by or columns containing a unique id that
should not be displayed in the grid.Name Type Description visible
boolean true, if the column should be visible
-
setWidth(width)
-
Set the width(in pixels) of this column
Name Type Description width
Number width of the column
-
transfer(){Object}
-
Transfer function returning the data of the Column for a gadget.
Returns:
Type Description Object Data of the column