mapp.ui.elements.dataviewDialog()
Exports the dialog method as mapp.ui.elements.dataviewDialog()
Requires
Methods
(inner) dataviewDialog(dataview)
Creates a dialog which can hold dataviews: charts and tables.
The dialog is resizable and allows for a width and height param config.
Assigns a dataview_dialog object to the dataview which holds the created dialog.
{
"target": "dialog"
"dialog_css": {
"width": 300,
"height": 400,
"minHeight": 350,
"minWidth": 250,
}
...
}Parameters:
Properties| Name | Type | Description |
|---|---|---|
dataview | Object | The dialog configuration object. |
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
dataview.chkbox | HTMLElement | Checkbox that controls whether the dataview is displayed or not. | ||
dataview.key | String | Key identifier of the chart/table. | ||
dataview.label | String | Label to be used as the dialog header. | ||
dataview.dialog_css | Object | <optional> | An object with and a height and a width. | |
dialog_css.width | Integer | <optional> | 300 | The dialog css width in px. |
dialog_css.height | Integer | <optional> | 200 | The dialog css height in px. |
dialog_css.minWidth | Integer | <optional> | 300 | The dialog css minWidth in px. |
dialog_css.minHeight | Integer | <optional> | 200 | The dialog css minHeight in px. |
dialog_css.resize | String | <optional> | 'both' | The dialog css resize property. |