Methods

The ColumnGroup class provides several methods to manipulate a column group in the grid.

setColumns(array $columns)

This method sets the columns of the group. It takes one argument: an array of BaseColumn instances.

public function setColumns(array $columns): static

addColumn(BaseColumn $column)

This method adds a column to the group. It takes one argument: a BaseColumn instance.

public function addColumn(BaseColumn $column): static

Last updated