Try Install Learn Blog API Packages GitHub
Pages

Ui.Native.AutoComplete

An auto complete component using the native datalist element.

Properties

disabled
:
Bool
=
false

Wether or not the input is disabled.

id
:
String
=
Uid.generate()

The id of the datalist.

invalid
:
Bool
=
false

Wether or not the input is invalid.

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

The change event handler.

options
:
Array(String)
=
[]

The options of the input.

placeholder
:
String
=
""

The placeholder to show when there is no value.

size
:
Number
=
16

The size of the input.

value
:
String
=
""

The currently selected value.

Functions

render
:
Html

Renders the component.