Due to a ransomware attack, the wiki was reverted to a July 2022 version. . We apologize for the lack of a more recent valid backup.
...
FlashService is an Angular Factory in the Layer module with the name flash.js
. It provides an API to "flash" messages on the screen. To use these functions, see the documentation on injecting Angular services.
...
The FlashService has various default settings for messages. Below is the defaultSettings object, that will be angular.extended if you provide an opts object.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
defaultSettings = { fade: 200, // fade time (ms) showFor: 1200 // show message time (ms) }; |
...