@univerjs/ui v0.1.17 • Docs
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
Parameter | Type |
---|---|
categories | string [] |
Returns
IToolbarRenderHookHandler
toolbar status
Defined in
packages/ui/src/views/components/doc-bars/hook.ts:51 (opens in a new tab)