Fixed #134 - secondary header content

This commit is contained in:
Max Lynch
2013-11-15 21:16:22 -06:00
parent cfa2aa6401
commit 7b317fb7ff
3 changed files with 15 additions and 0 deletions

View File

@ -23627,6 +23627,9 @@ angular.module('ionic.ui.content', [])
if(attr.hasHeader) { if(attr.hasHeader) {
c.addClass('has-header'); c.addClass('has-header');
} }
if(attr.hasSubheader) {
c.addClass('has-subheader');
}
if(attr.hasFooter) { if(attr.hasFooter) {
c.addClass('has-footer'); c.addClass('has-footer');
} }

View File

@ -41,6 +41,9 @@ angular.module('ionic.ui.content', [])
if(attr.hasHeader) { if(attr.hasHeader) {
c.addClass('has-header'); c.addClass('has-header');
} }
if(attr.hasSubheader) {
c.addClass('has-subheader');
}
if(attr.hasFooter) { if(attr.hasFooter) {
c.addClass('has-footer'); c.addClass('has-footer');
} }

View File

@ -54,11 +54,20 @@
title="'Title'" title="'Title'"
type="bar-primary"></header-bar> type="bar-primary"></header-bar>
<div class="bar bar-subheader">
<div class="button-bar">
<a class="button">Success</a>
<a class="button">Warning</a>
<a class="button">Danger</a>
</div>
</div>
<content <content
on-refresh="onRefresh()" on-refresh="onRefresh()"
on-refresh-opening="onRefreshOpening(amount)" on-refresh-opening="onRefreshOpening(amount)"
refresh-complete="refreshComplete" refresh-complete="refreshComplete"
has-header="true" has-header="true"
has-subheader="true"
has-footer="true" has-footer="true"
> >
<refresher></refresher> <refresher></refresher>