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