Returns an array of [[GridColDef]] containing all the column definitions.
An array of [[GridStateColDef]].
Returns the [[GridColDef]] for the given field
.
The column field.
The [[GridStateColDef]].
Returns the index position of a column. By default, only the visible columns are considered.
Pass false
to useVisibleColumns
to consider all columns.
The column field.
Optional
useVisibleColumns: booleanDetermines if all columns or the visible ones should be considered. Default is true
.
The index position.
Gets the index of a column relative to the columns that are reachable by scroll.
The column field.
The index of the column.
Returns the left-position of a column relative to the inner border of the grid.
The column field.
The position in pixels.
Returns the currently visible columns.
An array of [[GridStateColDef]].
Changes the visibility of the column referred by field
.
The column to change visibility.
Pass true
to show the column, or false
to hide it. Default is false
Sets the column visibility model to the one given by model
.
The new visible columns model.
Updates the width of a column.
The column field.
The new width.
Updates the definition of multiple columns at the same time.
The new column [[GridColDef]] objects.
The column API interface that is available in the grid [[apiRef]]. TODO: Differentiate interfaces based on the plan