Optional properties for Dropdown property item

interface IDropdownPropertyItemOptions {
    enable?: boolean;
    entries?: IDropdownPropertyItemEntry[];
    hiddenLabel?: boolean;
    onChange?: (
        newValue: number,
        oldValue: number,
        items: IDropdownPropertyItemEntry[],
    ) => void;
    title?: LocalizedString;
    tooltip?: LocalizedString;
    visible?: boolean;
}

Hierarchy (View Summary)

Properties

enable?: boolean

Initial enabled state of property item. If undefined, it will default to true.

List of dropdown entries associated with the property item. If undefined, list will be empty.

hiddenLabel?: boolean

If true label text will be hidden. It will be visible by default.

onChange?: (
    newValue: number,
    oldValue: number,
    items: IDropdownPropertyItemEntry[],
) => void

This callback is called when UI control value is changed.

Localized title of the property item.

tooltip?: LocalizedString

Tooltip description of the property item.

visible?: boolean

Initial visibility state of property item. If undefined, it will default to true.