headless-combobox

Index

Namespaces

Type Aliases

Config The Config<T> represents the configuration needed for the combobox to work with generic items.

Update The Effect<T> represents all the possible effects that can happen to the combobox. You as the user of the library has to implement the side effects

Update

Model

Selectors This type represents all the possible states of an item

Model The Model<T> represents the state of the combobox. This is the data you will be saving in your app.

Update The Msg<T> represents all the possible state transitions that can happen to the combobox.

Variables

WAI-ARIA

Functions

Model The init function returns the initial state of the combobox.

Config

Selectors Utility function to determine if input is blurred.

Selectors Utility function to determine if the dropdown is closed.

Selectors Utility function to determine if input is focused.

Selectors Utility function to determine if any item is highlighted.

Selectors Utility function to determine if an item is highlighted.

Selectors Selector function to determine if an index is selected.

Selectors Utility function to determine if an item is selected.

Selectors Selector function to determine if an item is selected and highlighted.

Selectors Utility function to determine if the dropdown is opened.

Selectors Utility function to determine if any item is selected.

Selectors

Selectors Utility function to determine if in unselected state

Helpers This helper function converts a keyboard event key property to a message.

Config The simpleFilter function is a default implementation of the deterministicFilter function.

Selectors This function returns the value that the input element should have.

Selectors This function returns the all the filtered items.

Selectors This function returns the highlighted item.

Selectors This utility function returns the status of an item.

Selectors This function returns the selected item

Selectors This function returns an object of all the returns of all the selectors.

Update The update function is the main function. The update function takes the current state of the combobox and a message and returns the new state of the combobox and effects that need to be run.

Selectors This function returns the all the filtered items with their status.

Generated using TypeDoc