Add support for multiple attribute#37
Open
bfiessinger wants to merge 11 commits intoasantibanez:masterfrom
Open
Add support for multiple attribute#37bfiessinger wants to merge 11 commits intoasantibanez:masterfrom
multiple attribute#37bfiessinger wants to merge 11 commits intoasantibanez:masterfrom
Conversation
- added support for HTML attribute multiple - added new view for multiple select tag
- add new blade directive livewireSelectStyles for adding custom css - update directive livewireSelectScripts single assets can now be included and excluded by options
…lectScripts and livewireSelectStyles - each asset option now get's automatically trimmed - livewireSelect default script only get's pushed if not in option array
…ad of livewireSelect and add �ssetType parameter to renderAssets method
multiple attribute
Author
|
@asantibanez is this something you plan to merge ? Just to know if I wait for it or if I implement another solution in the app I'm currently working on :) Thank a lot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
reopened #34 on new branch.
This PR adds the ability to select multiple values.
By adding the
multipleattribute on the component the select input turns into a multi-select dropdown.Example:

To include the required assets I've also made some small changes on the blade directives.
livewireSelectScriptslivewireSelectStylesBoth directives now support options where you can set which assets should be loaded.
... @livewireSelectStyles <!-- loads all styles defined in Asantibanez\LivewireSelect\LivewireSelect->css. omit this directive completely if Livewire::styles() and tailwindcss is already included on the page --> </head> <body> ... @livewireSelectScripts(alpine, livewire-select-multiple) <!-- loads only alpinejs, livewire-select-multiple and the default required livewire-select--> </body> </html>also closes #22 by 25f5147