diff --git a/demos/component-docs/helpers.ts b/demos/component-docs/helpers.ts index 90553ff268..daae6615b4 100644 --- a/demos/component-docs/helpers.ts +++ b/demos/component-docs/helpers.ts @@ -34,6 +34,12 @@ import {FormsPage, import {IconsPage} from './icons/icons'; +import {CheckboxPage, + RadioPage, + RangePage, + SelectPage, + SwitchPage} from './inputs/inputs'; + import {BasicListsPage, AvatarListsPage, IconListsPage, @@ -122,6 +128,11 @@ export function getPageFor(hash) { 'card-advanced-social': CardsAdvancedSocialPage, 'card-advanced-weather': CardsAdvancedWeatherPage, + 'checkbox': CheckboxPage, + 'radio': RadioPage, + 'range': RangePage, + 'select': SelectPage, + 'switch': SwitchPage, 'inputs': FormsPage, 'fixed-inline-labels': FixedInlinePage, diff --git a/demos/component-docs/inputs/checkbox.html b/demos/component-docs/inputs/checkbox.html new file mode 100644 index 0000000000..36e8d242ed --- /dev/null +++ b/demos/component-docs/inputs/checkbox.html @@ -0,0 +1,11 @@ + + + + Checkbox + + + + + + + diff --git a/demos/component-docs/inputs/inputs.ts b/demos/component-docs/inputs/inputs.ts new file mode 100644 index 0000000000..1d4878434f --- /dev/null +++ b/demos/component-docs/inputs/inputs.ts @@ -0,0 +1,48 @@ +import {App, IonicApp, Page} from 'ionic/ionic'; +import {forwardRef} from 'angular2/angular2'; +import * as helpers from '../helpers'; + +@Page({ + templateUrl: 'inputs/checkbox.html', + directives: [forwardRef(() => helpers.AndroidAttribute)] +}) +export class CheckboxPage{ + constructor() { + } +} + +@Page({ + templateUrl: 'inputs/radio.html', + directives: [forwardRef(() => helpers.AndroidAttribute)] +}) +export class RadioPage{ + constructor() { + } +} + +@Page({ + templateUrl: 'inputs/range.html', + directives: [forwardRef(() => helpers.AndroidAttribute)] +}) +export class RangePage{ + constructor() { + } +} + +@Page({ + templateUrl: 'inputs/select.html', + directives: [forwardRef(() => helpers.AndroidAttribute)] +}) +export class SelectPage{ + constructor() { + } +} + +@Page({ + templateUrl: 'inputs/switch.html', + directives: [forwardRef(() => helpers.AndroidAttribute)] +}) +export class SwitchPage{ + constructor() { + } +} diff --git a/demos/component-docs/inputs/radio.html b/demos/component-docs/inputs/radio.html new file mode 100644 index 0000000000..d84ccfd838 --- /dev/null +++ b/demos/component-docs/inputs/radio.html @@ -0,0 +1,11 @@ + + + + Radio + + + + + + + diff --git a/demos/component-docs/inputs/range.html b/demos/component-docs/inputs/range.html new file mode 100644 index 0000000000..43bb3cdf8b --- /dev/null +++ b/demos/component-docs/inputs/range.html @@ -0,0 +1,11 @@ + + + + Range + + + + + + + diff --git a/demos/component-docs/inputs/select.html b/demos/component-docs/inputs/select.html new file mode 100644 index 0000000000..e687b630ff --- /dev/null +++ b/demos/component-docs/inputs/select.html @@ -0,0 +1,11 @@ + + + + Select + + + + + + + diff --git a/demos/component-docs/inputs/switch.html b/demos/component-docs/inputs/switch.html new file mode 100644 index 0000000000..d733032c40 --- /dev/null +++ b/demos/component-docs/inputs/switch.html @@ -0,0 +1,11 @@ + + + + Switch + + + + + + +