Abstract
Input value type.
Constructs user input control.
Input aspects applied by default. These are aspect converters to constructed control from the same-valued one.
Abstract
itInput value.
Readonly
Abstract
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.
Abstract
supplyThis 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.
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.
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
User input control.
Maintains input value and various aspects of the user input, such as input focus, validity, etc.