Function: useToolbarItemStatus()
function useToolbarItemStatus(menuItem): IToolbarItemStatus
Defined in: submodules/univer/packages/ui/src/views/components/ribbon/hook.ts:36
Subscribe to a menu item’s status change and return the latest status.
Parameters
Parameter | Type | Description |
---|---|---|
menuItem | IDisplayMenuItem <IMenuItem > | The menu item |
Returns
IToolbarItemStatus
The menu item’s status