@ppci/source-overview
v1.5.17
Published
Source overview
Downloads
7
Keywords
Readme
Source Overview
Table of contents
Installation
NPM
npm i @ppci/source-overview
// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs
Usage
Javascript
import '@ppci/source-overview'
Browser
<!-- Default -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/source-overview/builds/index.min.js" />
<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/source-overview/builds/legacy.min.js" />
<!-- Component -->
<source-overview
rowSize=${Number}
rowsPerRequest=${Number}
deviceId=${String}
></source-overview>
Styling
source-overview {
/* common */
--theme-border-radius: 4px;
/* grid */
--grid-columns: 2;
/* usage in media queries */
@media (min-width: 675px) {
--grid-columns: 4;
}
/* typo */
--theme-primary-h3-color: black;
--theme-primary-p-color: gray;
}