API Reference
@univerjs
@univerjs/ui
functions
Usetoolbargroups

@univerjs/ui v0.1.17Docs


Function: useToolbarGroups()

function useToolbarGroups(categories): 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[]

Returns

IToolbarRenderHookHandler

toolbar status

Defined in

packages/ui/src/views/components/doc-bars/hook.ts:51 (opens in a new tab)


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