Skip to main content

ElementSetScrollPercentage

Callable

  • ElementSetScrollPercentage(ElementOrId: ElementOrId, scrollPercentage: number, scrollBehavior?: ScrollBehavior): void

  • Sets the scroll position of an element to a specified percentage of its scrollable content. Ideally scroll percentage should be gotten with ElementGetScrollPercentage


    Parameters

    • ElementOrId: ElementOrId
    • scrollPercentage: number
    • scrollBehavior: ScrollBehavior = 'auto'

    Returns void