F
Filament14mo 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',
])
...
public static function table(Table $table): Table
{
return $table
->columns([
SelectColumn::make('type')
->options([
PatientType::CAT => 'Cat',
PatientType::DOG => 'Dog',
PatientType::RABBIT => 'Rabbit',
])
...
1 Reply
maxtor831
maxtor83113mo ago
Hi @bzy have you managed to find out how to do it with textColumn? thanks
Want results from more Discord servers?
Add your server