-
Notifications
You must be signed in to change notification settings - Fork 1
MDL Badges
Piotr Zarzycki edited this page Aug 18, 2017
·
63 revisions
The origin MDL documentation is available at Badges
In FlexJS the Badge component is implemented as a bead which could be applied to some basic components.
- Bead:
-
<mdl:Badge/>
-
Properties:
-
dataBadge
(Number)
Assigns string value to badge -
noBackground
(Number)
Applies open-circle effect to badge -
overlap
(Number)
Make the badge overlap with its container
-
-
A badge inside a link
<js:A text="This link contains a badge." href="http://flex.apache.org">
<js:beads>
<mdl:Badge dataBadge="1"/>
</js:beads>
</js:A>
A badge inside a link with no badge background color
<js:A text="This badge has no background color." href="http://flex.apache.org">
<js:beads>
<mdl:Badge dataBadge="5" noBackground="true"/>
</js:beads>
</js:A>
To be continued...
Live Demo