-
Notifications
You must be signed in to change notification settings - Fork 0
component.Token
Gary Soedarsono edited this page Feb 2, 2015
·
13 revisions
extends: [[component.Component
|component.Component]]
A simple movable component with only one state. Examples of token:
- Chess piece
- Cubes
- Damage marker
To use this, create a pb-c-token
element with one child element. This child element will be
displayed as the token.
<!-- Example: A square token -->
<pb-c-token>
<div style="background: red; width: 50px; height: 50px;"></div>
<pb-c-token>
Supported abilities:
- Draggable: Default enabled.
new component.Token()
createdCallback()
Called when the element is created.