API Reference
@univerjs
@univerjs/ui
functions
Usetoolbargroups

@univerjs/ui v0.4.2Docs


Function: useToolbarGroups()

function useToolbarGroups(categories, initCategory?): IToolbarRenderHookHandler

If your custom toolbar component need to render menu items by their category, you can use this hook to get the toolbar status.

Parameters

ParameterType
categoriesstring[]
initCategory?string

Returns

IToolbarRenderHookHandler

toolbar status

Defined in

packages/ui/src/views/components/ribbon/hook.ts:67 (opens in a new tab)


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