diff --git a/demos/select/index.ts b/demos/select/index.ts
index 13d1222f64..b378df5f4e 100644
--- a/demos/select/index.ts
+++ b/demos/select/index.ts
@@ -1,30 +1,54 @@
import {App, Page} from 'ionic/ionic';
-@App({
- template: ''
-})
-class ApiDemoApp {
- constructor() {
- this.root = MainPage;
- }
-}
-
@Page({
templateUrl: 'main.html'
})
class MainPage {
+ gender: string;
+ gaming: string;
+ toppings: Array;
+ petAlertOpts;
+ petData;
+ pets: Array;
+
constructor() {
- this.musicAlertOpts = {
- title: '1994 Music',
+ this.gender = 'f';
+ this.gaming = 'n64';
+
+ this.petAlertOpts = {
+ title: 'Like Pets?',
subTitle: 'Select your favorite'
};
- this.petOptions = [
+ this.toppings = ['bacon', 'xcheese'];
+
+ this.petData = [
{ text: 'Bird', value: 'bird' },
- { text: 'Cat', value: 'cat', checked: true },
- { text: 'Dog', value: 'dog', checked: true },
+ { text: 'Cat', value: 'cat' },
+ { text: 'Dog', value: 'dog' },
{ text: 'Honey Badger', value: 'honeybadger' },
- { text: 'Pig', value: 'pig' },
];
+
+ this.pets = ['cat', 'dog'];
+ }
+
+ monthChange(val) {
+ console.log('Month Change:', val);
+ }
+
+ yearChange(val) {
+ console.log('Year Change:', val);
+ }
+}
+
+
+@App({
+ template: ''
+})
+class ApiDemoApp {
+ root;
+
+ constructor() {
+ this.root = MainPage;
}
}
diff --git a/demos/select/main.html b/demos/select/main.html
index 4a4400adbc..0dc7cf4e1c 100644
--- a/demos/select/main.html
+++ b/demos/select/main.html
@@ -10,14 +10,14 @@
Gender
- Female
+ Female
Male
Gaming
-
+
NES
Nintendo64
PlayStation
@@ -27,38 +27,12 @@
-
- Operating System
-
- DOS
- Linux
- Mac OS 7
- Mac OS 8
- Windows 3.1
- Windows 95
- Windows 98
-
-
-
-
- Music
-
- Alice in Chains
- Green Day
- Nirvana
- Pearl Jam
- Smashing Pumpkins
- Soundgarden
- Stone Temple Pilots
-
-
-
Date
-
+
January
February
- March
+ March
April
May
June
@@ -67,9 +41,9 @@
September
October
November
- December
+ December
-
+
1989
1990
1991
@@ -92,9 +66,9 @@
Toppings
- Bacon
+ Bacon
Black Olives
- Extra Cheese
+ Extra Cheese
Green Peppers
Mushrooms
Onions
@@ -105,31 +79,20 @@
-
- Car Features
-
- Backup Camera
- Headted Seats
- Keyless Entry
- Navigation
- Parking Assist
- Sun Roof
-
-
-
Pets
-
- {{o.text}}
+
+ {{o.text}}
Disabled
-
+
Selected Text
+