/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:
Properties| Name | Type | Description |
|---|---|---|
layer | layer |
| Name | Type | Attributes | Description |
|---|---|---|---|
layer.reports | array | The configuration of the reports | |
reports.popout | boolean | <optional> | Whether the drawer can be popped out into a dialog. |
reports.classList | string | <optional> | The string will be appended to the drawer element classlist. |
Returns:
The report element for the panel.
- Type:
- HTMLElement