Open nikuscs opened 5 years ago
You can use select(...)->multiple() for your example.
In case of multiple yes, but how about other attributes without value ? Ex : selectable for usage with 3rd Party javascript.
In case of multiple yes, but how about other attributes without value ? Ex : selectable for usage with 3rd Party javascript.
If you set the value to true
, it will add the attribute to the element with no value.
select(...)->attrs(['data-custom-attribute' => true])
<select data-custom-attribute ...>...</select>
Similarly, if you set the value to false
, the attribute will not be added.
Hope that helps!
I believe its not possible to add attributes to a field without value. I can push a PR to fix this issue if necessary.
Example :
<select id="select" class="show-tick form-control" name="multipleSelect" multiple>