Table searchable isIndividual with drop down values

Hello, I am using a Textcolumn which has boolean values and I would like to make it searchable using isIndividual but instead of typing the search value in text input I need it to be a drop down please, Please let me know how do make it display drop down? ->searchable(isIndividual: true) Thank you so much
1 Reply
DrByte
DrByte6mo ago
I dunno if that's an available option. Maybe if you change the table from a typical rows/columns to a Split/Grid ... cuz the selects become dropdowns then. Or, you could just use a Toggle Filter. (but it's not a dropdown) Example:
->filters([ Tables\Filters\Filter::make('is_musical')
->toggle()
->query(fn (Builder $query): Builder => $query->where('is_musical', true))
->label('Musical-Only'),
], layout: Tables\Enums\FiltersLayout::AboveContent)
->filters([ Tables\Filters\Filter::make('is_musical')
->toggle()
->query(fn (Builder $query): Builder => $query->where('is_musical', true))
->label('Musical-Only'),
], layout: Tables\Enums\FiltersLayout::AboveContent)