Web Component: j-Tooltip


  • Info
  • HTML
  • JS
  • CSS
  • Meta

j-Tooltip

  • singleton
  • universal usage
  • NEW hide (SETTER('tooltip', 'hide', [force])) now supports the force parameter for instant hide.

METHODS

var opt = {};

// opt.offsetX {Number}    : adds X offset (default: 0)
// opt.offsetY {Number}    : adds Y offset (default: 0)
// opt.align {String}      : align `bottom` (default), `top`, `left` or `right`
// opt.center {Boolean}    : centered position for `left` and `right` align (default: false)
// opt.timeout {Number}    : hide timeout (in milliseconds), default: `undefined`

opt.element = YOUR_ELEMENT;
opt.html = 'YOUR_HTML_CONTENT';

SETTER('tooltip', 'show', opt);

Author