Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
index.js
readme.js
readme.styl
test.html
test.js

README.md

Badge

The Badge component creates a notification badge with a counter and unread alert.

Demo

Example
Add Subtract

Code

To update the notification count, pass in the count property.

HTML

<tonic-badge></tonic-badge>

JS

tonicBadge.value = 5

Api

Properties

Property Type Description Default
id string Adds the id attribute.
name string Adds the name attribute.
count string Updates the count property. 0
theme string Adds a theme color (light, dark or whatever is defined in your base CSS. light

Instance Members

Property Description
value Getter/setter for the badge count.