Class InStatusAbstract

Aggregate status aspect of user input.

Collects and reports input status flags. Like whether the input ever had focus or being altered.

Supports input elements and containers. For the rest of input controls always sends default status flags.

Implements EventKeeper interface by sending collected status flags to receivers.

Hierarchy

  • InStatus

Implements

Constructors

Properties

read: AfterEvent<[InStatus.Flags]>

An AfterEvent keeper of input status flags.

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

Accessors

Methods

  • Marks the input as edited by user.

    For container invokes this method for each of the nested controls.

    Parameters

    • Optional edited: boolean

      Whether to mark the input as edited by user. true by default, in which case the input will be marked as touched as well.

    Returns InStatus

    this aspect instance.

  • Marks the input as touched.

    For container invokes this method for each of the nested controls.

    Parameters

    • Optional touched: boolean

      Whether to mark the input as touched or not. true by default. When false the input would be marked as non-edited too. Setting to false affects only edited flag when input has focus.

    Returns InStatus

    this aspect instance.

Generated using TypeDoc