Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ionic Header and Footer

ionic Header and Footer


Header

Header is a component fixed at the top of the screen; it can contain a title and left/right function buttons.

ionic provides many color styles by default; you can call different style names, and of course you can customize one.

bar-light



bar-light

Try it »

bar-stable



bar-stable

Try it »

bar-positive



bar-positive

Try it »

bar-calm



bar-calm

Try it »

bar-balanced



bar-balanced

Try it »

bar-energized



bar-energized

Try it »

bar-assertive



bar-assertive

Try it »

bar-royal



bar-royal

Try it »

bar-dark



bar-dark

Try it »


Sub Header

Sub Header is also fixed at the top, just below the Header; even if no Header is written, the Sub Header style keeps a Header's distance from the top. Color styles are the same as Header.



Header

Sub Header

Try it »


Footer

Footer is at the very bottom of the screen and can contain various content types.





Try it »

Footer is the same as the Header above, except the style name bar-header is replaced with bar-footer.





Try it »

In addition, if there is no title in the footer but you need a right-side button, you need to add pull-right to the right button, e.g.:





Try it »