Skip to content

Databubble

[DataBubbleImpl]{#DataBubbleImpl data-4search="ui/b/databubble.js:DataBubbleImpl;section"}

The DataBubbleImpl and DataBubbleIface classes implement the logic required to extract and display data-bubble="" tooltip popups on mouse hover.

DataBubbleIface class

class [DataBubbleIface]{#DataBubbleIface data-4search="ui/b/databubble.js:DataBubbleIface;class"} : …

[**`update`**]{#update data-4search="ui/b/databubble.js:update;func"}  `(`*element, text*`)`
:   Set the `data-bubble` attribute of `element` to `text` or force its callback

[**`callback`**]{#callback data-4search="ui/b/databubble.js:callback;func"}  `(`*element, callback*`)`
:   Assign a callback function to fetch the `data-bubble` attribute of `element`

[**`force`**]{#force data-4search="ui/b/databubble.js:force;func"}  `(`*element*`)`
:   Force `data-bubble` to be shown for `element`

[**`unforce`**]{#unforce data-4search="ui/b/databubble.js:unforce;func"}  `(`*element*`)`
:   Cancel forced `data-bubble` for `element`

[**`clear`**]{#clear data-4search="ui/b/databubble.js:clear;func"}  `(`*element*`)`
:   Reset the `data-bubble` attribute, its callback and cancel a forced bubble