0.1.16 • Published 4 years ago

@ppci-mock/source-dialog v0.1.16

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Source Dialog

Table of contents

Installation

NPM

npm i @ppci-mock/source-dialog

// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs

Usage

Javascript

import '@ppci-mock/source-dialog'

Browser

<!-- Default -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci-mock/source-dialog/builds/index.min.js" />

<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci-mock/source-dialog/builds/legacy.min.js" />

<!-- Component -->
<source-dialog
  .source=${Object}
  .sourceMix=${Array}
  @close=${Function}
  loading
  open
></source-dialog>

Styling

source-dialog {
  --theme-dialog-backdrop: white;
}

Properties

    // Other
    categoryId":1,
    "deviceId":"1015",
    "status":"ACTIVE",
    "latitude":52.368,
    "longitude":4.9036,
    "website":null,
    "type":"SUN",
    "supply":9500,
    "start":"2016-04-10T00:00:00",
    "end":null,
    "soldOut":false,
    "weight":1
  }
  ```
</td>

Events