UNPKG

1 kBTypeScriptView Raw
1import { ElementRef, Renderer } from '@angular/core';
2import { Config } from '../../config/config';
3import { Ion } from '../ion';
4import { Navbar } from './navbar';
5import { Toolbar } from './toolbar';
6/**
7 * @name Title
8 * @description
9 * `ion-title` is a component that sets the title of the `Toolbar` or `Navbar`
10 *
11 * @usage
12 *
13 * ```html
14 * <ion-header>
15 *
16 * <ion-navbar>
17 * <ion-title>Settings</ion-title>
18 * </ion-navbar>
19 *
20 * </ion-header>
21 * ```
22 *
23 * Or to create a navbar with a toolbar as a subheader:
24 *
25 * ```html
26 * <ion-header>
27 *
28 * <ion-navbar>
29 * <ion-title>Main Header</ion-title>
30 * </ion-navbar>
31 *
32 * <ion-toolbar>
33 * <ion-title>Subheader</ion-title>
34 * </ion-toolbar>
35 *
36 * </ion-header>
37 * ```
38 *
39 * @demo /docs/demos/src/title/
40 */
41export declare class ToolbarTitle extends Ion {
42 constructor(config: Config, elementRef: ElementRef, renderer: Renderer, toolbar: Toolbar, navbar: Navbar);
43 /**
44 * @hidden
45 */
46 getTitleText(): any;
47}