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.Widget

InfoBox

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.
argtypedescription
textstringContent of the info box. Can be HTML formatted.
returndescription
du.widgets.infobox.InfoBoxReference to the current Info.

backgroundColor

du.widgets.infobox.InfoBox.backgroundColor(color)

Sets the background color of the info box. Default is black.
argtypedescription
colorstringColor to set background to.
returndescription
du.widgets.infobox.InfoBoxReference to the current Info.