Try Install Learn Blog API Packages GitHub
Pages

Ui.Native.Select

A select component using the native select element.

States

focused
:
Bool
=
false

A variable for tracking the focused state.

Properties

disabled
:
Bool
=
false

Wether or not the select is disabled.

invalid
:
Bool
=
false

Wether or not the select is invalid.

items
:
Array(Ui.ListItem)
=
[]

The items to show.

onChange
:
Function(String, Promise(Never, Void))
=
Promise.never1

The change event handler.

placeholder
:
String
=
""

The placeholder to show when there is no value selected.

size
:
Number
=
16

The size of the select.

value
:
String
=
""

The key of the current selected element.

Functions

The blur event handler.

handleChange
(
event
:
Html.Event
)

The change event handler.

The focus event handler.

render
:
Html

Renders the select.