API Reference
@univerjs
@univerjs/ui
functions
Usetoolbaritemstatus

@univerjs/ui v0.4.2Docs


Function: useToolbarItemStatus()

function useToolbarItemStatus(menuItem): IToolbarItemStatus

Subscribe to a menu item's status change and return the latest status.

Parameters

ParameterTypeDescription
menuItemIDisplayMenuItem<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)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.