-
new module:Tooltip( node, tip, options )
-
Parameters
Name Type Description node
HTMLElement | jQuery DOM node to monitor and show the tooltip on
tip
string string to show in the tooltip
options
object additional options for the tooltip
Name Type Attributes Default Description style
string <optional> black correlates to the discord styling/colors (black, brand, green, grey, red, yellow)
side
string <optional> top can be any of top, right, bottom, left
preventFlip
boolean <optional> false prevents moving the tooltip to the opposite side if it is too big or goes offscreen
isTimestamp
boolean <optional> false adds the timestampTooltip class (disables text wrapping)
disablePointerEvents
boolean <optional> false disables pointer events
disabled
boolean <optional> false whether the tooltip should be disabled from showing on hover
Details