monster.ui.tooltips()

Syntax

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

Parameters

KeyDescriptionTypeDefaultRequired
targetTemplate 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.jQuerytrue
optionsObject(#/options)false

options

KeyDescriptionTypeDefaultRequired
selectorSets the CSS Selector to call the tooltip method on.Object[data-toggle="tooltip"]false
triggerSets the Event to use to call the Bootstrap tooltip method on.String`mouseoverfalse
optionsOptions to customize the Bootstrap Tooltips plugin.Objectfalse

Description

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