Try Install Learn Blog API Packages GitHub
Pages
mint-ui

Search
Basic information
Entities
Versions
Dependencies
mint-color 0.0.0 <= v < 1.0.0

Ui.Select

A select component.

Properties

disabled
:
Bool
=
false

Whether or not the select is disabled.

invalid
:
Bool
=
false

Whether or not the select is invalid.

items
:
Array(Ui.ListItem)
=
[]

The items to show.

matchWidth
:
Bool
=
false

Whether or not the dropdown should match the width of the input.

offset
:
Number
=
5

The offset of the dropdown from the input.

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

The change event handler.

placeholder
:
String
=
""

The placeholder to show when there is no value selected.

position
:
Ui.Position
=
Ui.Position::BottomRight

The position of the dropdown.

size
:
Ui.Size
=
Ui.Size::Inherit

The size of the select.

value
:
String
=
""

The key of the current selected element.

Functions

handleClickSelect
(
value
:
String
)
:
Promise(Never, Void)

Handles the click event.

handleKeyDown
(
event
:
Html.Event
)

Handles the keydown event.

render
:
Html

Renders the select.