Blockbench Reference Docs
    Preparing search index...

    Type Parameters

    Index

    Constructors

    Methods

    Properties

    Constructors

    • Type Parameters

      Parameters

      • id: string
      • data: {
            default?: keyof T;
            display_icon?: boolean;
            options: T | (() => T);
            value?: keyof T;
            onChange?(value: keyof T): void;
            onInput?(value: keyof T, event: Event): void;
        }
        • Optionaldefault?: keyof T
        • Optionaldisplay_icon?: boolean

          Set to true to display the specified icon of the selected option in the UI element

        • options: T | (() => T)
        • Optionalvalue?: keyof T
        • onChange?: function
          • Parameters

            • value: keyof T

            Returns void

        • onInput?: function
          • Parameters

            Returns void

      Returns SelectInput<T>

    Methods

    • Parameters

      • value: keyof T
      • Optionaloptions: T
      • Optionalinput_event: Event

      Returns void

    Properties

    node: HTMLElement