monster.ui.tooltips()

Syntax

monster.ui.tooltips(target[, args]);

Parameters

target: jQuery object (mandatory)

Template on which the method will be applied. It will automatically find the tooltips field and add an event so that when a user mouseover it, it shows a tooltip. This helper allows us to lazy-load the tooltips instead of loading them all at once when we first load the template, which could be heavy on the browser.

args: Object (optional, default: {})

Let you specify a map of options for this helper:

  • selector: String (optional, default: [data-toggle="tooltip"]) - sets the CSS Selector to call the tooltip method on
  • trigger: String (optional, default: mouseover) - sets the Event to use to call the Bootstrap tooltip method on
  • options: Object (optional, default: {}) - options to customize the Bootstrap 2.3.1 Tooltips. Full list of options here

Description

This helper will find all the item under the specified selector and will allow the lazy-loading of tooltips on them automatically.

Edit this page here