VeilService is an Angular Factory in the Layer module with the name veil.js
. It allows you to show and hide the "Veil" – a GUI overlay that lets the user know the websocket connection was dropped. To use these functions, see the documentation on injecting Angular services.
Below is a screenshot of the Veil when the websocket connection goes down on the Topology View.
Name | Summary |
---|---|
init | Initialize the VeilService. |
show | Show the Veil. |
hide | Hide the Veil. |
Initialize the VeilService. This is already called, so you probably won't have to initialize it yourself.
Example Usage | Arguments | Return Value |
---|---|---|
vs.init(); | none | none |
Show the Veil.
Example Usage | Arguments | Return Value |
---|---|---|
vs.show(msg ); | msg - an array of strings, each array member is a paragraph | none, but shows the Veil and disables key bindings |
Hide the Veil.
Example Usage | Arguments | Return Value |
---|---|---|
vs.hide(); | none | none, but hides the Veil and enables key bindings |