/ui/elements/alert
Exports the alert dialog method as mapp.ui.elements.alert()
- Source
Requires
Methods
(inner) alert(params) → {HTMLElement}
This is an alert element to display information to the user.
It is a framework alternative way to using window.alert() browser function.
mapp.ui.elements.alert({
text: "Drivetimes have been created."
})
Parameters:
PropertiesName | Type | Description |
---|---|---|
params | Object | Params for the alert dialog. |
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
params.data_id | string | <optional> | 'alert' | The data-id attribute value for the dialog. |
params.title | string | <optional> | Text to display in the alert header. Defaults to 'Information'. | |
params.text | string | <optional> | Text to display in the alert content. |
- Source
Returns:
alert The alert element.
- Type:
- HTMLElement