InputControl


Use this control to create and manipulate an input element. This control uses the EventControl to notify subscribers on change, blur and focus events.

Inherits properties from its parent, ElementControl.

Initialize

const inputElement = ElementResolver.resolveOne('#someInputElement');

const exampleInput = new InputControl(inputElement);

exampleInput.initialize();

.clear()

Clear the input value.

.enable()

Enable the input control if it is disabled.

.disable()

Disable the input control if it is enabled.

.isDisabled()

Check whether the input control is disabled

.value

Get the value of the input.

.inputEvent.subscribe()

Subscribe to the input event. See Event Control.

.clearEvent.subscribe()

Subscribe to the clear event. See Event Control.