Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 1.09 KB

File metadata and controls

32 lines (19 loc) · 1.09 KB

Select

This component extends the base input with dropdown-specific behavior.

Usage

<rl-select options="" get-options="" selector="" null-option="" ng-disabled="" ng-model="" validator="" label="" name=""> ... </rl-select>

Options

options

A list of options to display in the dropdown.

get-options

Use instead of options for loading options asynchronously. Accepts a function that returns a list or a promise that returns a list.

selector

A selector for getting the display name of the options. Can be a property name or a function that returns a string.

null-option

If specified, will show an option with the specified text at the top of the list for 'clearing' the selection.

This option will set disabled on the textarea if the expression inside it is truthy.

Example: ng-disabled="true" will output <textarea disabled> ... </textarea>

See input for detail on the base options.