FilamentF
Filament3y ago
bzy

I want to achieve something similar to options with a textColumn.

I have a column with values like 1, 2, 3 type.
While I can display it with SelectColumn, I would like to display it using textColumn. How can I do that?

    public static function table(Table $table): Table
    {
        return $table
            ->columns([
                SelectColumn::make('type')
                    ->options([
                        PatientType::CAT => 'Cat',
                        PatientType::DOG => 'Dog',
                        PatientType::RABBIT => 'Rabbit',
                    ])
...
Was this page helpful?