@univerjs/ui v0.4.2 • Docs
Function: useToolbarItemStatus()
function useToolbarItemStatus(menuItem): IToolbarItemStatus
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
Defined in
packages/ui/src/views/components/ribbon/hook.ts:141 (opens in a new tab)