ionic Header and Footer
ion-header-bar
This is a header title bar fixed at the top of the screen. If you add the 'bar-subheader' style to it, it becomes a subtitle.
Usage
Title!
Some content!
API
| property | Type | Description |
|---|---|---|
| align-title |
(optional)
| `string` |This aligns the title. If not set, it follows the phone's default layout (iOS defaults to center, Android defaults to left). Its value can be 'left', 'center', 'right'.
| | no-tap-scrollBy default, tapping the screen scrolls the content to the header in the header title bar; you can set no-tap-scroll to true to disable this action. Its value is a boolean (true/false).
|ion-footer-bar
Once you know ion-header-bar, understanding ion-footer-bar is easy! It's just that ion-footer-bar is at the bottom of the screen.
Usage
Some content!
Title!
API
Unlike ion-header-bar, ion-footer-bar only has the align-title API.
| property | Type | Description |
|---|---|---|
| align-title |
(optional)
| `string` |This aligns the title. If not set, it follows the phone's default layout (iOS defaults to center, Android defaults to left). Its value can be 'left', 'center', 'right'.
|