API Reference
@univerjs
@univerjs/ui
functions
Usescrollyovercontainer

@univerjs/ui v0.4.2Docs


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

packages/ui/src/components/hooks/layout.ts:35 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.