_StateMixin

(esrith/amos/core/_StateMixin)

Private class for represent any state such as disabled, readOnly, active and error.

Description
Type Description
active Boolean

If true, this forces the control to enter the active state and classname 'amos-form-active' will be added.

busy Boolean

If true, this forces the control to enter the busy state and classname 'amos-form-busy' will be added.

disabled Boolean

If true, any control's events(except change) are not responding. Its content cannot be edited and is excluded when the form is submitted.

error Boolean

If true, this forces the control to enter the error state and classname 'amos-form-error' will be added.

readOnly Boolean

If true, the control is read-only and cannot be edited. However, its content, if presents, is included in form submission.

viewMode Boolean

If true, the control will show only the displayedValue.

Constructors Detail
Properties Detail
<Boolean>
active

If true, this forces the control to enter the active state and classname 'amos-form-active' will be added.

Default value: false

<Boolean>
busy

If true, this forces the control to enter the busy state and classname 'amos-form-busy' will be added.

Default value: false

<Boolean>
disabled

If true, any control's events(except change) are not responding. Its content cannot be edited and is excluded when the form is submitted.

Default value: false

<Boolean>
error

If true, this forces the control to enter the error state and classname 'amos-form-error' will be added.

Default value: false

<Boolean>
readOnly

If true, the control is read-only and cannot be edited. However, its content, if presents, is included in form submission.

Default value: false

<Boolean>
viewMode

If true, the control will show only the displayedValue.

Default value: false