@univerjs/ui v0.5.0-beta.1 • 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
submodules/univer/packages/ui/src/components/hooks/layout.ts:35