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:
NameTypeDescription
dataviewObject

The dialog configuration object.

Properties
NameTypeAttributesDescription
dataview.chkboxHTMLElement

Checkbox that controls whether the dataview is displayed or not.

dataview.keyString

Key identifier of the chart/table.

dataview.labelString

Label to be used as the dialog header.

dataview.dialog_cssObject<optional>

An object with and a height and a width.