Class: Input

Input(type, placeholder, minLength, maxLength)

Input element.

Constructor

new Input(type, placeholder, minLength, maxLength)

Parameters:
Name Type Description
type string one of HTML input type
placeholder string
minLength string | number min number of characters
maxLength string | number max number of characters
Source:

Classes

Input

Members

value

Gets input value.
Source:

value

Sets input value.
Source:

Methods

disable() → {Input}

Sets as read-only.
Source:
Returns:
this
Type
Input

enable() → {Input}

Sets as editable field.
Source:
Returns:
this
Type
Input

onChange(fun) → {Input}

Binds a function called on change event.
Parameters:
Name Type Description
fun function
Source:
Returns:
this
Type
Input

onEnter(fun) → {Input}

Binds a function called when key "Enter" is pressed.
Parameters:
Name Type Description
fun function
Source:
Returns:
this
Type
Input

onInput(fun) → {Input}

Binds a function called on input event.
Parameters:
Name Type Description
fun function
Source:
Returns:
this
Type
Input