Grid options
$gridOptions = new \Bitrix\Main\Grid\Options('MY_GRID_ID');
// Returns current sorting
$sorting = $gridOptions->getSorting($defaultSorting);
// Sets sorting сортировку
$gridOptions->setSorting($sorting);
// Returns list of displayed columns
$sorting = $gridOptions->getUsedColumns($defaultColumnsList);
// Returns list of pinned columns
$sorting = $gridOptions->getStickedColumns();
// Sets list of pinned columns
$gridOptions->setStickedColumns($stickedColumns);
External appearance
Method | Description |
Columns |
\Bitrix\Main\Grid\Column\Type | Type of displayed value |
\Bitrix\Main\Grid\Column\Color | Column color |
Counters |
\Bitrix\Main\Grid\Counter\Color | Counter color |
\Bitrix\Main\Grid\Counter\Size | Counter size |
\Bitrix\Main\Grid\Counter\Type | Counter type |
Labels |
\Bitrix\Main\Grid\Cell\Label\Color | Label color |
\Bitrix\Main\Grid\Cell\Label\RemoveButtonType | Type of button for deleting a label |
\Bitrix\Main\Grid\Cell\Label\Size | Label size |