Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.75 KB

File metadata and controls

46 lines (36 loc) · 1.75 KB

Input

These components wrap primitive inputs with validation behavior.

Usage

<rl-textbox ng-model="" validator="" label="" name=""> ... </rl-textbox>

See textbox for options specific to textbox inputs. Also can attach rl-required to add required field validation with an error message.

Options

Two-way binds the specified value to the input value. See ng-model.

validator

A handler for applying custom validation logic to an input component. Model:

{
	validate(): boolean;
	errorMessage: string | { (): string };
	isActive?: boolean | { (): boolean };
}

label

The label is used as the placeholder for the textbox. When the user enters a value, the label 'flowers-up' to above the textbox.

name

Applies a name to the ng-model for the component. If none is specified, defaults to input-{{guid}}.

Input components

Other inputs: