GridColumnList
Represents grid columns.
Constructors
new GridColumnList()
new GridColumnList(
dart
):GridColumnList
Parameters
Parameter | Type |
---|---|
dart | any |
Returns
Source
Properties
Property | Type |
---|---|
dart | any |
Accessors
length
get
length():number
GridColumnList length.
Returns
number
Source
rowHeader
get
rowHeader():null
|GridColumn
Row header column.
Returns
null
| GridColumn
Source
Methods
add()
add(
options
):GridColumn
Adds a new column to the grid (but not to the underlying dataframe).
Parameters
Parameter | Type |
---|---|
options | object |
options.cellType | string |
options.gridColumnName ? | string |
options.index ? | number |
Returns
Source
byIndex()
byIndex(
index
):null
|GridColumn
Returns a grid column by index, or null if it does not exist.
Parameters
Parameter | Type | Description |
---|---|---|
index | number |
Returns
null
| GridColumn
Source
byName()
byName(
columnName
):null
|GridColumn
Returns a grid column by name, or null if it does not exist.
Parameters
Parameter | Type | Description |
---|---|---|
columnName | string |
Returns
null
| GridColumn
Source
setOrder()
setOrder(
columnNames
):void
Sets column order. Sample: https://public.datagrok.ai/js/samples/grid/order-columns
Parameters
Parameter | Type | Description |
---|---|---|
columnNames | string [] | Order of columns. |
Returns
void
Source
setVisible()
setVisible(
columnNames
):void
Shows the specified columns (and hides the rest). Sample: https://public.datagrok.ai/js/samples/grid/hide-columns
Parameters
Parameter | Type | Description |
---|---|---|
columnNames | string [] | Names of the columns to show. |
Returns
void