Skip to content
Gary Soedarsono edited this page Jan 13, 2015 · 26 revisions

component.Card

extends: [[component.Component|component.Component]]

A representation of a card. To use this, create a pb-c-card element with two child elements:

  • One must have a pb-front class. This is the front face of the card.
  • One must have a pb-back class. This is the back face of the card.

By default, the card starts by showing its back. If you want to make it start by showing the front face, add pb-showfront="true" to the pb-c-card.

new component.Card()

Methods

register

static register(!Document currentDoc, !Element cardTemplate)

Registers pb-c-card to the document.

currentDoc !Document The document object to register the element to.
cardTemplate !Element The template for the pb-c-card's element shadow DOM.

Clone this wiki locally