@moxijs/ui - v0.3.5
    Preparing search index...

    Class FormStateManager<T>

    Form State Manager

    Manages form control state following React patterns:

    • Controlled: value is controlled by parent
    • Uncontrolled: value is managed internally

    Type Parameters

    • T
    Index

    Constructors

    Methods

    • Set the value In controlled mode, calls onChange but doesn't update internal state. In uncontrolled mode, updates internal state and calls onChange.

      Parameters

      • value: T

      Returns void

    • Set the value silently without triggering onChange callback. Use this for programmatic updates where the parent is setting the value and doesn't need to be notified (e.g., initializing from external state).

      Parameters

      • value: T

      Returns void