new Notification( [options], className)
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
options |
Object |
<optional> |
Control options. |
className |
string | class of the control |
|
options.closeBox |
boolean | add a close button |
|
options.hideOnClick |
boolean | close dialog when click |
Extends
Methods
-
hide()
-
Remove a notification on the map
-
show(what [, duration])
-
Display a notification on the map
Parameters:
Name Type Argument Default Description what
string | node | undefined the notification to show, default get the last one
duration
number <optional>
3000 duration in ms, if -1 never hide
-
toggle( [duration])
-
Toggle a notification on the map
Parameters:
Name Type Argument Default Description duration
number <optional>
3000 duration in ms