Veraltet

Sie lesen die Dokumentation für 1.x. Aktuell ist 3.x.

Zur Dokumentation für 3.x →

Introduction

Icon Select Column adds an editable icon column to your filament tables. The cell renders the current state as an icon, and clicking it opens a dropdown where the user picks a new state, again represented by icons. The selection is saved straight to the record, like filament's own SelectColumn.

This is useful for quickly toggling states directly from a table, for example a status, a priority or a rating, without opening the edit page.

Add the column to any table:

use Guava\FilamentIconSelectColumn\Tables\Columns\IconSelectColumn;

IconSelectColumn::make('status')
    ->options(Status::class);

The column works best with a backed enum implementing filament's HasLabel, HasIcon and optionally HasColor contracts, but plain arrays work too. See usage for both flavours.

guava/filament-icon-select-column 10K Installationen · 46 Sterne
// COOKIES

Ein paar Cookies halten die Seite am Laufen; andere merken sich Einstellungen oder zählen Besuche. Sie entscheiden.

Cookie-Richtlinie