Function toPhysicalScrollLeft

  • The horizontal scroll position for element.scrollTo(…) – physical, i.e. negative in right-to-left.

    Parameters

    • x: number

      px from the start

    • rtl: boolean

      right-to-left

    Returns number

    the value for scrollLeft / scrollTo()

    Example

    tableApi.getTableScope().scrollViewport.scrollTo(toPhysicalScrollLeft(200, true), 0); // 200 px from the right start
    

    Since

    1.1.98