Input value type.
A type of input HTML element.
Constructs HTML input element control.
HTML input element the constructed control is based on.
Optional
Readonly
aspects?: Aspect<TValue, TValue> | readonly Aspect<TValue, TValue>[]Readonly
get: ((this) => TValue)Readonly
set: ((this, value) => void)Readonly
elementHTML input element the constructed control is based on.
Readonly
eventsDOM event dispatcher of this element.
Readonly
inputAn AfterEvent
keeper of user input.
Readonly
onOnEvent sender of value changes.
The [OnEvent__symbol]
property is an alias of this one.
Value changes sender.
Readonly
readAfterEvent keeper of current value.
The [AfterEvent__symbol]
property is an alias of this one.
Current value keeper.
Input value.
Input value.
This control's input supply.
Releases all control resources when cut off.
Each control has its own supply. An input supply of converted control depends on the input supply of control it is converted from.
After this supply cut off the control should no longer be used.
Static
[Protected
_applyApplies the given aspect to this control in a custom way.
Aspect instance type.
Aspect application kind.
An aspect to apply.
Either applied aspect instance or undefined
to apply the aspect in standard way (i.e. using
InAspect.applyTo()
method).
Retrieves an aspect instance applied to this control.
If the given aspect
is not applied yet, then applies it first.
Aspect instance type.
Aspect application kind.
A key of aspect to apply to this control.
An applied aspect instance.
Updates the tracked value by the given value supplier
.
If the value is already updated by another supplier, then unbinds from the old one first.
Call the byNone method to unbind the tracked value from the source
.
Note that explicitly updating the value would override the value received from the source
.
The source value sender or keeper.
this
instance.
Updates the tracked value by value suppliers extracted from events sent by the given supplier
.
If the value is already updated by another value supplier, then unbinds from the old one first.
Call the byNone method to unbind the tracked value from the source
.
Note that explicitly updating the value would override the value received from the source
.
Source event type.
The event supplier to extract value suppliers from.
A function extracting value supplier from event received from supplier
.
May return undefined
to suspend receiving values.
Rest
...event: TSrcEventthis
instance.
Unbinds the tracked value from any value supplier this tracker is updated by.
If the tracker is not bound then does nothing.
Optional
reason: unknownArbitrary reason of unbinding the value.
this
instance.
Converts this control to another one without changing its value type.
The converted aspect may have another value and input aspects.
Rest
...by: Aspect<TValue, TValue>[]Input control aspect converters.
Converted control.
Converts this control to another one.
The converted aspect may have another value and input aspects.
Converted input value type.
Input control converter.
Rest
...and: Aspect<TValue, TTo>[]Additional input control aspect converters.
Converted control.
Protected
listenEnables reaction to input input.
By default listens for input
and change
events.
Updates current value by user input and sends update event. This function is to be called by input event listeners.
Performs additional setup of this control.
A function that accepts this control as its only parameter.
this
control instance.
Performs additional setup of this control's aspect.
Aspect instance type.
Aspect application kind.
A key of aspect to set up.
A function that accepts an applied aspect instance and this control as parameters.
this
control instance.
Generated using TypeDoc
Abstract implementation of input HTML element control.