接口 IToggleGroupPropertyItemOptions实验性

Optional properties for Toggle Group property item

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

层级 (查看完整内容)

属性

enable?: boolean

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

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

hiddenEntryLabels?: boolean

If true toggle buttons will be displayed vertically with their labels. If undefined, labels will be hidden.

hiddenLabel?: boolean

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

onChange?: ((newValue: number, oldValue: number, items: IToggleGroupPropertyItemEntry[]) => 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.