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.WidgetHint
du.widgets.hint.Hint(name)
The hint widget class.
| arg | type | description |
|---|---|---|
| name | string | Identifier of the widget. |
text
du.widgets.hint.Hint.textstring The hint text.
pin
du.widgets.hint.Hint.pin(pinned)
Pins the hint to the DOM so that it does not disappear on mousemove.
| arg | type | description |
|---|---|---|
| pinned | boolean | Whether the hint should be pinned. |
| return | description |
|---|---|
du.widgets.hint.Hint | Reference to the current Hint. |