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