Margarita form reference documentation
    Preparing search index...

    Class StateManager<CONTROL>

    Type Parameters

    • CONTROL extends MFC

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _value: MargaritaFormState = ...
    control: CONTROL
    initialValue?: MargaritaFormState
    subscriptions: Subscription[] = []
    managerName: keyof Managers = 'state'

    Accessors

    • get otherChanges(): Observable<unknown>

      Returns Observable<unknown>

    Methods

    • Validate the control and update state. Mark the control as touched to show errors.

      Parameters

      • setAsTouched: boolean = true

        Set the touched state to true

      Returns Promise<boolean>