du.widgets.status
Module implementing an status widget. A status is a 'label: status' pair.Requires:
d3@v4 du.WidgetStatus
du.widgets.status.Status(name[, parent])
The status widget class.
| arg | type | description |
|---|---|---|
| name | string | Identifier of the status widget. |
| parent | object | Parent element to append widget to. If not specified, widget is appended to body. Accepts HTML formatting. optional |
value
du.widgets.status.Status.value(text)
Sets the current status value.
| arg | type | description |
|---|---|---|
| text | string | Status value text. |
| return | description |
|---|---|
du.widgets.piechart.PieChart | Reference to the current PieChart. |