/ui/layers/panels/reports

Exports a function for creating a drawer or just a panel which contains links to custom views.

    {
      "report_1":{
        "template": "report_template"
      }
    }

Supplying layer.reports.drawer: false will return the links a plain dev instead of a drawer

Methods

(inner) reports(layer) → {HTMLElement}

Creates a list of a elements containing links to custom views.

Specifying layer.reports.drawer: false will prevent a drawer from being made for the reports panel.

Parameters:
NameTypeDescription
layerlayer
Properties
NameTypeAttributesDescription
layer.reportsarray

The configuration of the reports

reports.popoutboolean<optional>

Whether the drawer can be popped out into a dialog.

reports.classListstring<optional>

The string will be appended to the drawer element classlist.

Returns:

The report element for the panel.

Type: 
HTMLElement