@univerjs/ui v0.4.2 • Docs
Function: useScrollYOverContainer()
function useScrollYOverContainer(element, container): void
Allow the element to scroll when its height over the container height
Parameters
Parameter | Type | Description |
---|---|---|
element | Nullable <HTMLElement > | Container means the window view that the element displays in. Recommend pass the sheet mountContainer as container |
container | Nullable <HTMLElement > | - |
Returns
void
Defined in
packages/ui/src/components/hooks/layout.ts:35 (opens in a new tab)