From 2ca0068c566ff5117d70cd729c1991d40ba44cb0 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Fri, 5 Feb 2016 16:07:56 -0500 Subject: [PATCH] docs(demos): add tabs demo with scenarios references driftyco/ionic-site#397 --- demos/tabs/index.ts | 6 +++ demos/tabs/main.html | 93 +++++++++++++++++++++++++++++++++++ ionic/components/tabs/tab.ts | 1 + ionic/components/tabs/tabs.ts | 1 + 4 files changed, 101 insertions(+) create mode 100644 demos/tabs/index.ts create mode 100644 demos/tabs/main.html diff --git a/demos/tabs/index.ts b/demos/tabs/index.ts new file mode 100644 index 0000000000..8807633159 --- /dev/null +++ b/demos/tabs/index.ts @@ -0,0 +1,6 @@ +import {App} from 'ionic/ionic'; + +@App({ + templateUrl: 'main.html', +}) +class ApiDemoApp {} diff --git a/demos/tabs/main.html b/demos/tabs/main.html new file mode 100644 index 0000000000..5228e8a13d --- /dev/null +++ b/demos/tabs/main.html @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ionic/components/tabs/tab.ts b/ionic/components/tabs/tab.ts index 18a96d7a5c..fda936de71 100644 --- a/ionic/components/tabs/tab.ts +++ b/ionic/components/tabs/tab.ts @@ -76,6 +76,7 @@ import {TabButton} from './tab-button'; * @property {String} [tabBadgeStyle] - set the badge color for this tab * @property {Any} (select) - method to call when the current tab is selected * + * @demo /docs/v2/demos/tabs/ */ @Component({ selector: 'ion-tab', diff --git a/ionic/components/tabs/tabs.ts b/ionic/components/tabs/tabs.ts index 06879daaf0..bbc79301d3 100644 --- a/ionic/components/tabs/tabs.ts +++ b/ionic/components/tabs/tabs.ts @@ -36,6 +36,7 @@ import {isUndefined, isTrueProperty} from '../../util/util'; * individual Tab components. On iOS, the TabBar is placed on the bottom of * the screen, while on Android it is at the top. * + * @demo /docs/v2/demos/tabs/ * @see {@link /docs/v2/components#tabs Tabs Component Docs} * @see {@link ../Tab Tab API Docs} */