@minecraft/server-editor
    Preparing search index...

    Interface IDropdownPropertyItemMixInBeta

    Dropdown property item specific functionality

    interface IDropdownPropertyItemMixIn {
        updateDropdownItems(
            dropdownItems: IDropdownItem[],
            newValue: number,
        ): void;
    }
    Index

    Methods

    • Beta

      Parameters

      Returns void

      Used to update the Dropdown options in the control. Will trigger onChange with -1 as the old value due to the list changing entries.