du.widgets.picture
Module implementing the picture widget. The picture widget is just simply a static image.Requires:
d3@v4 du.WidgetPicture
du.widgets.picture.Picture(name[, parent])
The picture widget class.
| arg | type | description |
|---|---|---|
| name | string | Identifier of the widget. |
| parent | object | Parent element to append widget to. If not specified, widget is appended to body. optional |
src
du.widgets.picture.Picture.src(path)
Sets the image source path.
| arg | type | description |
|---|---|---|
| path | string | Path to the image source. |
| return | description |
|---|---|
du.widgets.picture.Picture | Reference to the current Picture. |