Function setLogicalScrollLeft

  • Sets the horizontal scroll position of an element as distance from the start (see getLogicalScrollLeft).

    Parameters

    • element: {
          scrollLeft: number;
      }

      a scroll container

      • scrollLeft: number
    • x: number

      px from the start

    • rtl: boolean

      the container is right-to-left

    Returns void

    Example

    setLogicalScrollLeft(tableApi.getTableScope().scrollViewport, 0, true); // back to the (right) start
    

    Since

    1.1.98