@ppci/global-error
v1.1.6
Published
Global error
Downloads
8
Keywords
Readme
Global Error
Table of contents
Installation
NPM
npm i @ppci/global-error
// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs
Usage
Javascript
import '@ppci/global-error'
Browser
<!-- Default -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/global-error/builds/index.min.js" />
<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/global-error/builds/legacy.min.js" />
<!-- Component -->
<global-error
title=${String}
message=${String}
retryTitle=${String}
@onRetry=${Event}
></global-error>