mil-offline
v1.0.0
Published
Javascript offline mixin for webcomponents
Downloads
2
Maintainers
Readme
<mil-offline>
'mil-offline' is javascript mixin that handles offline states. It exposes a _offline boolean property that provides offline state.
Usage
Install from npm
npm install --save mil-offline
Import to your webcomponent
import "mil-offline";
Extend your class
class yourClass extends offlineMixin(LitElement) {}
Observe _offline values.
updated(changedProperties) {
if (changedProperties.has("_offline")) {
/* do something */
}
}