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