Class TabInputModel<T>

Model to be used in collaboration with tabInputComponent.

Type Parameters

  • T

Hierarchy

  • TabInputModel

Constructors

  • Initialize the object.

    Type Parameters

    • T

    Parameters

    • entity: T
    • selectedType: "VALUE" | "VARIABLE" | "EXPRESSION"
    • value: ValueType

    Returns TabInputModel<T>

Properties

entity: T

Entity is the possibly complex object that TabInput is representing

selectedType: "VALUE" | "VARIABLE" | "EXPRESSION"

SelectedType is the type of value that the user has selected: 'Value' | 'Variable' | 'Expression'

value: ValueType

Value is either the "value" of the "variable" or the "expression" entered by the user

Methods

  • Returns TabInputValue from TabInputModel which is the input for the TabInput component

    Type Parameters

    • T

    Parameters

    Returns TabInputValue

  • Checks if tabInputModel has an entity and a selectedType

    Type Parameters

    • T

    Parameters

    • value: any

      to be interrogated

    Returns value is TabInputModel<T>

  • Validates the model

    Type Parameters

    • T

    Parameters

    Returns Promise<boolean>

  • Sets TabInputValue on TabInputModel which is the input for the TabInput component

    Type Parameters

    • T

    Parameters

    • model: TabInputModel<T>

      to update the TabInputValue

    • value: TabInputValue

      the inserted value for the model.

    Returns void

Generated using TypeDoc