-
Notifications
You must be signed in to change notification settings - Fork 0
component.Card
Gary Soedarsono edited this page Nov 22, 2014
·
26 revisions
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-show-front="true"
to the pb-c-card
.
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. |