Package Exports
- @ppci/grid-view
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/grid-view) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Grid
Table of contents
Installation
NPM
npm i @ppci/grid-view
// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs
Usage
Javascript
import '@ppci/grid-view'
Browser
<!-- Default -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/grid-view/builds/index.min.js" />
<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/grid-view/builds/legacy.min.js" />
<!-- Component -->
<grid-view
rowSize=${String}
>
<slot></slot>
</grid-view>
Styling
grid-view {
--grid-columns: 4;
--grid--column-width: 1f;
/* Responsive */
@media (max-width: 600px) {
--grid-columns: 2;
}
}
Properties
Property | Type | Description | Possible Values |
rowSize | number | Amount of columns on a row | 0,1,2,...N |