protonemedia / laravel-form-components

A set of Blade components to rapidly build forms with Tailwind CSS (v1.0 and v2.0) and Bootstrap 4/5. Supports validation, model binding, default values, translations, Laravel Livewire, includes default vendor styling and fully customizable!
https://protone.media/blog/laravel-form-components-to-rapidly-build-forms-with-tailwind-css-and-bootstrap-4
MIT License
814 stars 104 forks source link

For select multiple button for selectall and deselectall #105

Open Giovanni-Petrella opened 1 year ago

Giovanni-Petrella commented 1 year ago

I propose adding buttons to check or uncheck all options in form-select by adding this code that works perfectly for me:

`@if ($multiple && $attributes->get('disabled') != true)

{{ trans('global.select_all') }} {{ trans('global.deselect_all') }}
    @endif
    <select
        @if ($isWired()) wire:model{!! $wireModifier() !!}="{{ $name }}" @else name="{{ $name }}" @endif....`

Peek 17-08-2023 19-33.webm