Select Option Groups #354
Unanswered
mikebronner
asked this question in
Feature Requests
Replies: 1 comment
-
I think you can use any HTML tags inside Example:<flux:select
class="!font-sans !w-auto !border-transparent"
data-tippy-content="Select A Book"
data-tippy-placement="top"
wire:model="selectedBook"
>
@foreach ($bookOptions as $label => $options)
<div class=“font-semibold uppercase border-b pb-1” >{{ $label }}</div>
@foreach ($options as $option)
<flux:option
wire:key="{{ $option }}"
value="{{ $option }}"
>
{{ $option }}
</flux:option>
@endforeach
</optgroup>
@endforeach
</flux:select> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I couldn't find documentation or code that supported select option groups. Did I miss something? I am using the following work-around:
If this is the expected implementation, is this something that would be useful to document? Or is this a feature that could be added?
Beta Was this translation helpful? Give feedback.
All reactions