bindTooltip method

Tooltip bindTooltip(
  1. String content, [
  2. TooltipOptions? options
])

Binds a tooltip to the layer with the passed content and sets up the options>options?) necessary event listeners. If a Function is passed it will receive the layer as the first argument and should return a String or HTMLElement.

Implementation

external Tooltip bindTooltip(String content, [TooltipOptions? options]);