mirror of
https://github.com/donl/meteor-ionic.git
synced 2026-05-26 22:06:41 -06:00
allow passing a badge number to tab items
This commit is contained in:
parent
8e1f520221
commit
7de261b1da
2 changed files with 11 additions and 0 deletions
|
|
@ -5,6 +5,13 @@
|
|||
{{else}}
|
||||
{{> ionIcon icon=defaultIcon}}
|
||||
{{/if}}
|
||||
|
||||
{{title}}
|
||||
|
||||
{{#if badgeNumber}}
|
||||
<div class="badge badge-assertive">
|
||||
{{badgeNumber}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</a>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -76,5 +76,9 @@ Template.ionTab.helpers({
|
|||
} else {
|
||||
return this.icon;
|
||||
}
|
||||
},
|
||||
|
||||
badgeNumber: function () {
|
||||
return this.badgeNumber;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue