diff --git a/src/components/menu/menu-toggle.ts b/src/components/menu/menu-toggle.ts index 080b712477..0f8ffcdb12 100644 --- a/src/components/menu/menu-toggle.ts +++ b/src/components/menu/menu-toggle.ts @@ -33,24 +33,28 @@ import {MenuController} from './menu-controller'; * the `` element: * * ```html - * - * - * + * + * - * - * - * - * Title - * - * - * - * - * + * + * Title + * + * + * + * + * + * + * * ``` * * Similar to ``, the `menuToggle` can be positioned using diff --git a/src/components/navbar/navbar.ts b/src/components/navbar/navbar.ts index d29710a716..cd75665a1c 100644 --- a/src/components/navbar/navbar.ts +++ b/src/components/navbar/navbar.ts @@ -62,26 +62,32 @@ class ToolbarBackground { /** * @name Navbar * @description - * Navbar is a global level toolbar that gets updated every time a page gets - * loaded. You can pass the navbar an `ion-title`, any number of buttons, a segment, or a searchbar. + * Navbar acts as the navigational toolbar, which also comes with a back + * button. A navbar can contain a `ion-title`, any number of buttons, + * a segment, or a searchbar. Navbars must be placed within an + * `` in order for them to be placed above the content. * * @usage * ```html - * - * + * * - * - * Page Title - * - * - * - * - * - * + * + * + * Page Title + * + * + * + * + * + * + * + * * ``` * * @demo /docs/v2/demos/navbar/ @@ -221,9 +227,6 @@ export class Navbar extends ToolbarBase { /** * @private - * Used to find and register headers in a view, and this directive's - * content will be moved up to the common navbar location, and created - * using the same context as the view's content area. */ @Directive({ selector: 'template[navbar]' diff --git a/src/components/toolbar/toolbar-title.ts b/src/components/toolbar/toolbar-title.ts index 7512f4d770..799099c6ad 100644 --- a/src/components/toolbar/toolbar-title.ts +++ b/src/components/toolbar/toolbar-title.ts @@ -14,9 +14,11 @@ import {Toolbar} from './toolbar'; * * ```html * + * * - * Tab 1 + * Settings * + * * * ``` * @@ -24,14 +26,16 @@ import {Toolbar} from './toolbar'; * * ```html * - * - * Tab 1 - * - * * - * - * Subheader - * + * + * Main Heder + * + * + * + * Subheader + * + * + * * ``` * * @demo /docs/v2/demos/title/ diff --git a/src/components/toolbar/toolbar.ts b/src/components/toolbar/toolbar.ts index 77e8385c22..c667e2865a 100644 --- a/src/components/toolbar/toolbar.ts +++ b/src/components/toolbar/toolbar.ts @@ -108,8 +108,9 @@ export class ToolbarBase extends Ion { * @description * A Toolbar is a generic bar that is positioned above or below content. * Unlike a [Navbar](../../nav/Navbar), a toolbar can be used as a subheader. - * Toolbars are positioned automatically at the `top`, but they can be - * positioned at the bottom by setting `position="bottom"` on the component. + * When toolbars are placed within an `` or ``, + * they stay fixed in their respective location. When placed within + * ``, toolbars will scroll with the content. * * * ### Buttons in a Toolbar @@ -132,48 +133,62 @@ export class ToolbarBase extends Ion { * * @usage * ```html - * - * - * - * - * - * My Toolbar Title - * + * * - * - * I'm a subheader - * + * + * + * + * + * + * My Toolbar Title + * * - * + * + * I'm a subheader + * * - * - * I'm a subfooter - * - * - * - * + * * - * - * I'm a footer - * - * - * - * - * + * + * + * + * + * Scrolls with the content + * + * + * + * + * + * + * + * + * I'm a subfooter + * + * + * + * + * + * + * I'm a footer + * + * + * + * + * + * + * * ``` * - * @property {any} [position] - set position of the toolbar, `top` or `bottom`. - * Default `top`. * @demo /docs/v2/demos/toolbar/ * @see {@link ../../navbar/Navbar/ Navbar API Docs} */