Class InModeAbstract

Input mode aspect of control.

Control can be either enabled, disabled, or readonly.

Each control maintains its own state, while nested controls respect container ones. I.e. when container is disabled all nested ones are also disabled. When container is readonly, all nested ones are also readonly, unless explicitly disabled.

When applied to input element this aspect maintains its disabled and readonly attributes (not properties!).

Implements EventSender interface by sending new and old mode values on each update.

Implements EventKeeper interface by sending actual mode value.

Hierarchy

  • InMode

Implements

Constructors

Properties

on: OnEvent<[InMode.Value, InMode.Value]>

An OnEvent sender of input mode updates.

Sends a new mode value along with old one as second parameter.

The [OnEvent__symbol] property is an alias of this one.

own: ValueTracker<InMode.Value>

Own input mode tracker.

read: AfterEvent<[InMode.Value]>

An AfterEvent keeper of input mode.

The [AfterEvent__symbol] property is an alias of this one.

Accessors

Methods

  • Derives input mode from another source.

    If the source mode is disabled, this one would be disabled too. If the source mode is read-only, then this one would be read-only, unless disabled already.

    Parameters

    Returns Supply

    Derived input mode supply. Disables source mode derivation once cut off.

Generated using TypeDoc