@univerjs/ui v0.1.17 • Docs
Function: useToolbarCollapseObserver()
function useToolbarCollapseObserver(visibleItems): {
collapsedId: string[];
toolbarItemRefs: MutableRefObject<Record<string, {
el: HTMLDivElement;
key: string;
}>>;
toolbarRef: RefObject<HTMLDivElement>;
}
Parameters
Parameter | Type |
---|---|
visibleItems | IDisplayMenuItem <IMenuItem >[] |
Returns
{
collapsedId: string[];
toolbarItemRefs: MutableRefObject<Record<string, {
el: HTMLDivElement;
key: string;
}>>;
toolbarRef: RefObject<HTMLDivElement>;
}
Name | Type | Defined in |
---|---|---|
collapsedId | string [] | packages/ui/src/views/components/doc-bars/hook.ts:202 (opens in a new tab) |
toolbarItemRefs | MutableRefObject <Record <string , { el : HTMLDivElement ; key : string ; }>> | packages/ui/src/views/components/doc-bars/hook.ts:201 (opens in a new tab) |
toolbarRef | RefObject <HTMLDivElement > | packages/ui/src/views/components/doc-bars/hook.ts:200 (opens in a new tab) |
Defined in
packages/ui/src/views/components/doc-bars/hook.ts:147 (opens in a new tab)