mirror of
https://github.com/donl/meteor-ionic.git
synced 2026-05-31 06:12:34 -06:00
21 lines
435 B
JavaScript
21 lines
435 B
JavaScript
Template.ionSubheaderBar.rendered = function () {
|
|
Session.set('hasSubheader', true);
|
|
};
|
|
|
|
Template.ionSubheaderBar.destroyed = function () {
|
|
Session.set('hasSubheader', false);
|
|
};
|
|
|
|
Template.ionSubheaderBar.helpers({
|
|
classes: function () {
|
|
var classes = ['bar', 'bar-subheader'];
|
|
|
|
if (this.class) {
|
|
classes.push(this.class);
|
|
} else {
|
|
classes.push('bar-stable');
|
|
}
|
|
|
|
return classes.join(' ');
|
|
}
|
|
});
|