@ppci-mock/widget-wrapper
v1.2.24
Published
widget wrapper
Downloads
6
Keywords
Readme
Widget Wrapper
Table of contents
Installation
NPM
npm i @ppci-mock/widget-wrapper
// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs
Usage
Javascript
import '@ppci-mock/widget-wrapper'
Browser
<!-- Default -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci-mock/widget-wrapper/builds/index.min.js" />
<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci-mock/widget-wrapper/builds/legacy.min.js" />
<!-- Component -->
<widget-wrapper
error=${Object}
notification=${Object}
>
<div>Widget content over here</div>
</widget-wrapper>