A native styled HTML <select> without custom dropdown menu. It uses the builder pattern:
new to create a base input.withPlaceholder or withIsRequired.view to render it.Render the SelectNative as HTML.
Always call this after you've built up the input with new and chained settings.
AvardaUi.SelectNative.new {...}
|> AvardaUi.SelectNative.withIsRequired True
|> AvardaUi.SelectNative.viewSet a custom ARIA label.
Adjust the border radius.
Provide a custom sort function for the option list(s).
Disable the input. Visually dims and prevents user actions.
Mark the select as required.
Show an error message and mark the select as invalid.
Provide a custom label function for options.
Sets the background color of the floating label.
This is useful when the color of the background behind the select is something else then #FFFFFF.
Set a flat list of options.
Set a grouped list of options. Each inner list will render as an <optgroup>.
Create a new
SelectNative.