Handles palindrom-client disconnection events and creates the needed UI to give the user control over them
Custom Element that binds with palindrom-client connection events and shows a simple UI that allows the user to interact with the events. It is can be used as an example of designing your own error-preseting UI.
Please check the code at palindrom-error-catcher.html
file to see how events are handled.
If you want to gain control over the appearance of your errors UI. You can fork this element, put it in the wwwroot/sys/
folder of your app. And edit it as desired. Once you have an element in this folder with the same name, it will supersede the default one and your UI will be shows.
Install the component using Bower:
$ bower install palindrom-error-catcher --save
Or download as ZIP.
-
Import polyfill:
<script src="bower_components/webcomponentsjs/webcomponent-lite.js"></script>
-
Import custom element:
<link rel="import" href="bower_components/palindrom-error-catcher/palindrom-error-catcher.html">
-
Start using it!
<palindrom-error-catcher></palindrom-error-catcher>
Attribute | Options | Default | Description |
---|---|---|---|
target-selector |
string | palindrom-client |
CSS selector of palindrom-client element. |
Method | Parameters | Returns | Description |
---|---|---|---|
cancelReloading() |
None. | Nothing. | Cancels reloading timer and hides the disconnection bar. |
For detailed changelog, check Releases.
MIT