Type alias PositioningCallback

PositioningCallback: ((rect: DOMRect) => {
    left: number;
    top: number;
})

Type declaration

    • (rect: DOMRect): {
          left: number;
          top: number;
      }
    • Callback type to position an HTML element.

      The callback gets the current placement of the settings as a DOMRect, and should return top and left positions in pixels, used with position: fixed.

      Parameters

      • rect: DOMRect

      Returns {
          left: number;
          top: number;
      }

      • left: number
      • top: number