Data Input

Selector

Definition

Presents a dropdown selection control.

Usage

Use Selector when a moderate set of options should stay compact until opened.

Attributes

  • label or i18n required. Accessible field label.
  • value. Selected value or writable state binding.
  • hasClear. Allows clearing the selected value.
  • hasSearch. Adds option search.
  • placeholder. Placeholder shown without a selected value.

Children

SelectorOption children.

Example

xml
<Selector label="Status" value="$filters.status" hasClear="true">
<SelectorOption value="open" label="Open" />
<SelectorOption value="closed" label="Closed" />
</Selector>