Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Latest commit

 

History

History
89 lines (66 loc) · 1.77 KB

column-selection.md

File metadata and controls

89 lines (66 loc) · 1.77 KB
title weight
Column Selection
5

Column select is on by default. All columns are selected by default and saved in the users session.

Excluding from Column Select

If you don't want a column to be able to be turned off from the column select box, you may exclude it:

Column::make('Address', 'address.address')
    ->excludeFromColumnSelect()

Available Methods

setColumnSelectStatus

Enabled by default, enable/disable column select for the component.

public function configure(): void
{
    $this->setColumnSelectStatus(true);
    $this->setColumnSelectStatus(false);
}

setColumnSelectEnabled

Enable column select on the component.

public function configure(): void
{
    // Shorthand for $this->setColumnSelectStatus(true)
    $this->setColumnSelectEnabled();
}

setColumnSelectDisabled

Disable column select on the component.

public function configure(): void
{
    // Shorthand for $this->setColumnSelectStatus(false)
    $this->setColumnSelectDisabled();
}

setRememberColumnSelectionStatus

Enabled by default, whether or not to remember the users column select choices.

public function configure(): void
{
    $this->setRememberColumnSelectionStatus(true);
    $this->setRememberColumnSelectionStatus(false);
}

setRememberColumnSelectionEnabled

Remember the users column select choices.

public function configure(): void
{
    // Shorthand for $this->setRememberColumnSelectionStatus(true)
    $this->setRememberColumnSelectionEnabled();
}

setRememberColumnSelectionDisabled

Forget the users column select choices.

public function configure(): void
{
    // Shorthand for $this->setRememberColumnSelectionStatus(false)
    $this->setRememberColumnSelectionDisabled();
}