Blockbench Reference Docs
    Preparing search index...

    Type Parameters

    • T extends Record<string, string>
    Index

    Constructors

    Methods

    Properties

    Constructors

    • Type Parameters

      • T extends Record<string, string>

      Parameters

      • id: string
      • options: {
            default?: T[keyof T];
            display_icon?: boolean;
            options: T;
            value?: T[keyof T];
            onChange?(value: T[keyof T]): void;
        }
        • Optionaldefault?: T[keyof T]
        • Optionaldisplay_icon?: boolean

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

        • options: T
        • Optionalvalue?: T[keyof T]
        • onChange?: function

      Returns SelectInput<T>

    Methods

    Properties

    node: HTMLElement