@combeenation/configurator-client
    Preparing search index...

    Class ValueComponent<TName, TValue, TInput>

    Represents a component of type Value

    Type Parameters

    • TName extends CmpName = CmpName
    • TValue extends CmpValue = CmpValue
    • TInput extends CmpValue = TValue

    Hierarchy (View Summary)

    Implements

    • IValueComponent

    Implemented by

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    name: TName
    zodType: ZodType<unknown>

    Methods

    • Function for receiving the value of a component.

      Returns Promise<undefined | TValue>

    • Parameters

      • listener: CmpValueChangedListener<TValue>

        Called whenever the value of the given cmp has changed

      • callImmediately: boolean = false

        True: The listener is immediately called with the current value of the cmp at the time, the listener is added
        False: The listener will be called for the first time when the value of the cmp actually changes

      • Optionalcondition: CmpValueChangedCondition<TValue>

        A predicate function which is given the new cmp value.
        The function can decide on whether the listener is called or not by returning true or false.

      Returns void

    • Sends the ChangeConfigurationValue request to the server

      Parameters

      Returns Promise<void>