-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
788a7b6
commit d7e1396
Showing
3 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { Component, NgModule } from '@angular/core'; | ||
import { IonicApp, IonicModule } from '../../../..'; | ||
|
||
|
||
@Component({ | ||
templateUrl: 'main.html' | ||
}) | ||
export class E2EPage { | ||
datetime = '2016-12-09'; | ||
toggle = true; | ||
select = 'n64'; | ||
text = 'Text'; | ||
checkbox = true; | ||
range = 10; | ||
} | ||
|
||
@Component({ | ||
template: '<ion-nav [root]="rootPage"></ion-nav>' | ||
}) | ||
export class E2EApp { | ||
rootPage = E2EPage; | ||
} | ||
|
||
@NgModule({ | ||
declarations: [ | ||
E2EApp, | ||
E2EPage | ||
], | ||
imports: [ | ||
IonicModule.forRoot(E2EApp) | ||
], | ||
bootstrap: [IonicApp], | ||
entryComponents: [ | ||
E2EApp, | ||
E2EPage | ||
] | ||
}) | ||
export class AppModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<ion-header> | ||
|
||
<ion-toolbar> | ||
<ion-title>Item inputs</ion-title> | ||
</ion-toolbar> | ||
|
||
</ion-header> | ||
|
||
|
||
<ion-content> | ||
<ion-list> | ||
<ion-item> | ||
Simple item | ||
</ion-item> | ||
|
||
<button ion-item> | ||
Item Button | ||
</button> | ||
|
||
<ion-item> | ||
<ion-label>DateTime</ion-label> | ||
<ion-datetime [(ngModel)]="datetime" min="1994-03-14" max="2017-12-09" displayFormat="MM/DD/YYYY" required></ion-datetime> | ||
</ion-item> | ||
|
||
<ion-item> | ||
<ion-label>Select</ion-label> | ||
<ion-select [(ngModel)]="select"> | ||
<ion-option value="nes">NES</ion-option> | ||
<ion-option value="n64">Nintendo64</ion-option> | ||
<ion-option value="ps">PlayStation</ion-option> | ||
<ion-option value="genesis">Sega Genesis</ion-option> | ||
<ion-option value="saturn">Sega Saturn</ion-option> | ||
<ion-option value="snes">SNES</ion-option> | ||
</ion-select> | ||
</ion-item> | ||
|
||
<ion-item> | ||
<ion-label>Toggle</ion-label> | ||
<ion-toggle name="Actually" [(ngModel)]="toggle"></ion-toggle> | ||
</ion-item> | ||
|
||
<ion-item> | ||
<ion-label>Input (text)</ion-label> | ||
<ion-input [(ngModel)]="text"></ion-input> | ||
</ion-item> | ||
|
||
<ion-item> | ||
<ion-label>Input (placeholder)</ion-label> | ||
<ion-input placeholder="Placeholder"></ion-input> | ||
</ion-item> | ||
|
||
<ion-item> | ||
<ion-label>Checkbox</ion-label> | ||
<ion-checkbox [(ngModel)]="checkbox"></ion-checkbox> | ||
</ion-item> | ||
|
||
<ion-item> | ||
<ion-label>Toggle (left)</ion-label> | ||
<ion-toggle [(ngModel)]="toggle" item-left></ion-toggle> | ||
</ion-item> | ||
|
||
<ion-item> | ||
<ion-label>Range</ion-label> | ||
<ion-range [(ngModel)]="range"></ion-range> | ||
</ion-item> | ||
</ion-list> | ||
|
||
</ion-content> |