接口 IActionBarItem实验性

Registered item handle in the Action Bar collection.

interface IActionBarItem {
    getEnabled: (() => boolean);
    id: string;
    label: string;
    setEnabled: ((enabled: boolean) => void);
}

属性

getEnabled: (() => boolean)

Returns the current enabled state of the item.

id: string

Unique identifier of the item.

label: string

Text label of the item.

setEnabled: ((enabled: boolean) => void)

Modify enabled state of the item.