position method

dynamic position(
  1. dynamic data,
  2. num width,
  3. num height,
  4. dynamic element,
)

Set custom position for the tooltip. This option can be used to modify the tooltip position by returning object that has top and left.

Implementation

external dynamic /*{ top: number; left: number }*/ position(
    dynamic data, num width, num height, dynamic element);