mirror of
https://github.com/donl/meteor-ionic.git
synced 2026-05-29 06:12:31 -06:00
Added badge color option to ionTab
This commit is contained in:
parent
ff882994ca
commit
52a59c173e
2 changed files with 5 additions and 1 deletions
|
|
@ -11,7 +11,7 @@
|
|||
{{title}}
|
||||
|
||||
{{#if badgeNumber}}
|
||||
<div class="badge badge-assertive">
|
||||
<div class="badge badge-{{badgeColor}}">
|
||||
{{badgeNumber}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
|
|||
|
|
@ -66,5 +66,9 @@ Template.ionTab.helpers({
|
|||
|
||||
badgeNumber: function () {
|
||||
return this.badgeNumber;
|
||||
},
|
||||
|
||||
badgeColor: function () {
|
||||
return this.badgeColor||'assertive';
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue