du.widgets.label
A label is a static piece of text.Requires:
d3@v4 du.WidgetLabel
du.widgets.label.Label(name[, parent])
The label widget class.
| arg | type | description |
|---|---|---|
| name | string | Identifier of the label. |
| parent | object | Parent element to append widget to. If not specified, widget is appended to body. optional |
align
du.widgets.label.Label.align(alignment)
Sets label text alignment. Default is center.
| arg | type | description |
|---|---|---|
| alignment | string | The alignment to set. |
| return | description |
|---|---|
du.widgets.label.Label | Reference to the current Label. |