/ui/elements/drawer
The drawer element module exports the drawer method for the mapp.ui.elements{}
library object.
- Source
Methods
(inner) drawer(params) → {HTMLElement}
The drawer method will create and return drawer element with a header and content.
Parameters:
PropertiesName | Type | Description |
---|---|---|
params | Object | The configuration params for the drawer element. |
Name | Type | Description |
---|---|---|
params.data_id | string | The data-id for drawer element. |
params.header | HTML | The header element[s]. |
params.content | HTML | The content element[s] for the drawer. |
- Source
Returns:
The drawer element.
- Type:
- HTMLElement
(inner) onClick(e)
The [drawer] onClick event method will shortcircuit if the parentElement has the empty
class.
Parameters:
Name | Type | Description |
---|---|---|
e | Object | The click event. |
- Source