Package Exports
- @ppci/custom-dialog
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ppci/custom-dialog) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Dialog
Table of contents
Installation
NPM
npm i @ppci/custom-dialog
// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs
Usage
Javascript
import '@ppci/custom-dialog'
Browser
<!-- Default -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/custom-dialog/builds/index.min.js" />
<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/custom-dialog/builds/legacy.min.js" />
<!-- Component -->
<custom-dialog
@close=${Function}
?loading=${Boolean}
?open=${Boolean}
>
<div>Place dialog content here</div>
</custom-dialog>
Styling
custom-dialog {
--theme-dialog-backdrop: white;
}
Properties
Property | Type | Description | Possible Values |
*open* | boolean | Show or hide dialog |
```html
|
loading | boolean | Show or hide loading indicator |
```html
|
Slotted | |||
Unnamed slot | string | html | Add dialog content here |
```html
This is slotted content
|
Events
Name | Description | Payload |
@close | Dialog close icon has been clicked | ```{ target: ..., currentTarget: ..., ... }``` |