接口 IDropdownPropertyItem实验性

A property item which supports Dropdown properties

interface IDropdownPropertyItem {
    enable: boolean;
    id: string;
    paneId: string;
    typeName: PropertyItemType;
    value: number;
    visible: boolean;
    getEntryByIndex(index: number): IDropdownPropertyItemEntry;
    getEntryByValue(value: number): IDropdownPropertyItemEntry;
    setTitle(title: LocalizedString): void;
    setTooltip(tooltip: LocalizedString): void;
    updateEntries(
        entries: IDropdownPropertyItemEntry[],
        newValue?: number,
    ): void;
}

层级 (查看层级一览)

属性

enable: boolean

If the item is enabled in the UI.

id: string

Unique ID for the property item.

paneId: string

The parent pane id.

The type name of the target property.

value: number

Current selected entry value of the property item list.

visible: boolean

If the item should be visible in the UI.

方法

  • 实验性

    参数

    • index: number

      Index of the dropdown entry in the list.

    返回 IDropdownPropertyItemEntry

    Find a dropdown entry at an index in the dropdown list.

  • 实验性

    参数

    • value: number

      Value of the dropdown entry in the list.

    返回 IDropdownPropertyItemEntry

    Find a dropdown entry with a specific value associated with property item.

  • 实验性

    参数

    返回 void

    Updates title of the property item.

  • 实验性

    参数

    返回 void

    Updates tooltip of the property item.

  • 实验性

    参数

    返回 void

    Update list of dropdown entries.