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