@univerjsuiindexfunctionsUsescrollyovercontainer

@univerjs/ui v0.5.0-beta.1Docs


Function: useScrollYOverContainer()

function useScrollYOverContainer(element, container): void

Allow the element to scroll when its height over the container height

Parameters

ParameterTypeDescription
elementNullable<HTMLElement>Container means the window view that the element displays in. Recommend pass the sheet mountContainer as container
containerNullable<HTMLElement>-

Returns

void

Defined in

submodules/univer/packages/ui/src/components/hooks/layout.ts:35