du.widgets.infobox
Module implementing an info notification. An info box is a small window together with a transparent full-width background.Requires:
d3@v4 du.WidgetInfoBox
du.widgets.infobox.InfoBox()
The info widget class.
content
du.widgets.infobox.InfoBox.content(text)
Sets the info box content. Default is an empty string.
| arg | type | description |
|---|---|---|
| text | string | Content of the info box. Can be HTML formatted. |
| return | description |
|---|---|
du.widgets.infobox.InfoBox | Reference to the current Info. |
backgroundColor
du.widgets.infobox.InfoBox.backgroundColor(color)
Sets the background color of the info box. Default is black.
| arg | type | description |
|---|---|---|
| color | string | Color to set background to. |
| return | description |
|---|---|
du.widgets.infobox.InfoBox | Reference to the current Info. |