Skip to content

Toggle Columns

By default, every Inertia Table column is toggleable: users may show and hide columns through the column dropdown to focus on the data they care about. You may opt individual columns out of toggling, hide columns by default while still allowing them to be toggled back on, or pin a column as always-visible.

Disabling Column Toggling

All columns are toggleable by default. To disable toggling for a specific column, pass toggleable: false to its make() method:

php
TextColumn::make('name', toggleable: false);

Alternatively, you may use the toggleable() and notToggleable() methods:

php
TextColumn::make('name')->toggleable();
TextColumn::make('name')->notToggleable();

Hiding Columns by Default

You may hide a column by default by passing visible: false to its make() method:

php
TextColumn::make('name', visible: false);

Alternatively, you may use the visible() and hidden() methods:

php
TextColumn::make('name')->visible(false);
TextColumn::make('name')->hidden();