diff --git a/demos/navbar/index.ts b/demos/navbar/index.ts new file mode 100644 index 0000000000..a662b7c735 --- /dev/null +++ b/demos/navbar/index.ts @@ -0,0 +1,14 @@ +import {App} from 'ionic/ionic'; + +// Use the toolbar demo but pass in the demo name to change the title +@App({ + templateUrl: '../toolbar/main.html' +}) +class ApiDemoApp { + constructor() { + this.demo = "Navbar"; + + this.favorites = "recent"; + this.apps = "free"; + } +} diff --git a/demos/toolbar/index.ts b/demos/toolbar/index.ts index 405e893db7..d4515ade00 100644 --- a/demos/toolbar/index.ts +++ b/demos/toolbar/index.ts @@ -3,4 +3,11 @@ import {App} from 'ionic/ionic'; @App({ templateUrl: 'main.html' }) -class ApiDemoApp {} +class ApiDemoApp { + constructor() { + this.demo = "Toolbar"; + + this.favorites = "recent"; + this.apps = "free"; + } +} diff --git a/demos/toolbar/main.html b/demos/toolbar/main.html index fca2eb6c25..97d077c134 100644 --- a/demos/toolbar/main.html +++ b/demos/toolbar/main.html @@ -1,11 +1,11 @@ - Toolbar + {{demo}} - This is the title that never ends. It just goes on and on my friend. + Long title that never ends. It just goes on and on my friend. @@ -19,22 +19,37 @@ - - Defaults + Default Buttons + + + + + + + + + + Colored Buttons + + + - Solid @@ -51,57 +66,28 @@ - - Outline - - - - - - - - Icon/Color Attr - - - - - - Left side menu toggle + Left Menu - - - - Right side menu toggle + Right Menu @@ -113,36 +99,36 @@ - - - Something + + + Featured - - Else + + Recent - - - Light + + + Paid - - Toolbar + + Free - - Default Segment + + Top + + + - + + + diff --git a/ionic/components/navbar/navbar.ts b/ionic/components/navbar/navbar.ts index 5885053f8c..f0c4db285a 100644 --- a/ionic/components/navbar/navbar.ts +++ b/ionic/components/navbar/navbar.ts @@ -86,6 +86,7 @@ class ToolbarBackground { * * ``` * + * @demo /docs/v2/demos/navbar/ * @see {@link ../../toolbar/Toolbar/ Toolbar API Docs} */ @Component({