myg-card
v0.13.8
Published
Cards can list objects.
Downloads
18
Readme
Cards
Usage
Stylesheets
@import "myg-cards/cards"
// Include classes (optional)
+myg__classes--card
Javascript
import MygCard from 'myg-cards';
document.addEventListener( 'ready', () => {
const mygCards = MygCard.initAll( document.querySelectorAll('.myg-card'), {} );
})
or
import * as myg from 'myg/src/myg';
const MygCard = myg.MygCard;
document.addEventListener( 'ready', () => {
const mygCards = MygCard.initAll( document.querySelectorAll('.myg-card'), {} );
})