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
getlength():number
GridColumnList length.
Returns
number
Source
rowHeader
getrowHeader():null|GridColumn<any>
Row header column.
Returns
null | GridColumn<any>
Source
Methods
add()
add(
options):GridColumn<any>
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
GridColumn<any>
Source
byIndex()
byIndex(
index):null|GridColumn<any>
Returns a grid column by index, or null if it does not exist.
Parameters
| Parameter | Type | Description |
|---|---|---|
index | number |
Returns
null | GridColumn<any>
Source
byName()
byName(
columnName):null|GridColumn<any>
Returns a grid column by name, or null if it does not exist.
Parameters
| Parameter | Type | Description |
|---|---|---|
columnName | string |
Returns
null | GridColumn<any>
Source
clear()
clear():
void
Removes all columns.
Returns
void
Source
removeAt()
removeAt(
index):void
Removes a grid column at the specified position.
Parameters
| Parameter | Type |
|---|---|
index | number |
Returns
void
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