victorybiz / laravel-simple-select

Laravel Simple Select inputs component for Blade and Livewire.
MIT License
125 stars 18 forks source link

HTML in option text-field? #24

Closed MGeurts closed 3 months ago

MGeurts commented 9 months ago

Is there a possibility to use HTML tags in the option text-field to highlight certain options?

Thanks.

NikarashiHatsu commented 3 months ago

Just publish the views, and edit the simple-select.blade.php, edit the code in line <span x-text="getTextFromSelectedValue(value)"></span> to <span x-html="getTextFromSelectedValue(value)"></span>. Alpine will render the expected HTML elements you provide.

MGeurts commented 3 months ago

I'm sorry. In the meantime I switched to TallStackUI components.