mobx-sentinel API doc
    Preparing search index...

    Binding for select elements

    Key features:

    • Supports single and multiple selection
    • Handles option changes
    • Manages error states and ARIA attributes

    Implements

    • FormBinding
    Index
    onChange: ChangeEventHandler<HTMLSelectElement, HTMLSelectElement> = ...
    onFocus: FocusEventHandler<HTMLSelectElement> = ...
    • get props(): {
          "aria-errormessage": string
          | undefined;
          "aria-invalid": boolean | undefined;
          id: string;
          multiple: boolean | undefined;
          onChange: ChangeEventHandler<HTMLSelectElement, HTMLSelectElement>;
          onFocus: FocusEventHandler<HTMLSelectElement>;
          value: string | number | readonly string[];
      }

      Binding properties which passed to the view component

      Returns {
          "aria-errormessage": string | undefined;
          "aria-invalid": boolean | undefined;
          id: string;
          multiple: boolean | undefined;
          onChange: ChangeEventHandler<HTMLSelectElement, HTMLSelectElement>;
          onFocus: FocusEventHandler<HTMLSelectElement>;
          value: string | number | readonly string[];
      }

    • get value(): string | number | readonly string[]

      Returns string | number | readonly string[]