du.widgets.hint

Module implementing a smart hint. A hint is a positioned label of information that disappears once the user interacts with the page. It is always added to body as parent.

Requires: d3@v4 du.Widget

Hint

du.widgets.hint.Hint(name)

The hint widget class.
argtypedescription
namestringIdentifier of the widget.

text

du.widgets.hint.Hint.text

string The hint text.

pin

du.widgets.hint.Hint.pin(pinned)

Pins the hint to the DOM so that it does not disappear on mousemove.
argtypedescription
pinnedbooleanWhether the hint should be pinned.
returndescription
du.widgets.hint.HintReference to the current Hint.