@univerjs/ui v0.5.0-beta.1 • 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
submodules/univer/packages/ui/src/views/components/ribbon/hook.ts:36