mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
refactor(demos): forms and input
This commit is contained in:
12
demos/component-docs/inputs/checkbox/pages.ts
Normal file
12
demos/component-docs/inputs/checkbox/pages.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import {Page} from 'ionic/ionic';
|
||||
import {forwardRef} from 'angular2/angular2';
|
||||
import {AndroidAttribute} from '../../helpers';
|
||||
|
||||
@Page({
|
||||
templateUrl: 'inputs/checkbox/template.html',
|
||||
directives: [forwardRef(() => helpers.AndroidAttribute)]
|
||||
})
|
||||
export class CheckboxPage{
|
||||
constructor() {
|
||||
}
|
||||
}
|
64
demos/component-docs/inputs/checkbox/template.html
Normal file
64
demos/component-docs/inputs/checkbox/template.html
Normal file
@ -0,0 +1,64 @@
|
||||
<ion-navbar *navbar hide-back-button class="android-attr">
|
||||
|
||||
<ion-title>
|
||||
Checkbox
|
||||
</ion-title>
|
||||
|
||||
</ion-navbar>
|
||||
|
||||
|
||||
<ion-content>
|
||||
|
||||
<ion-list>
|
||||
|
||||
<ion-checkbox checked="true">
|
||||
Jon Snow
|
||||
</ion-checkbox>
|
||||
|
||||
<ion-checkbox dark checked="true">
|
||||
Daenerys Targaryen
|
||||
</ion-checkbox>
|
||||
|
||||
<ion-checkbox value="cherry" disabled="true">
|
||||
Arya Stark
|
||||
</ion-checkbox>
|
||||
|
||||
<ion-checkbox secondary>
|
||||
Tyrion Lannister
|
||||
</ion-checkbox>
|
||||
|
||||
<ion-checkbox danger checked="true">
|
||||
Sansa Stark
|
||||
</ion-checkbox>
|
||||
|
||||
<ion-checkbox>
|
||||
Khal Drogo
|
||||
</ion-checkbox>
|
||||
|
||||
<ion-checkbox energized checked="true" dark>
|
||||
Cersei Lannister
|
||||
</ion-checkbox>
|
||||
|
||||
<ion-checkbox royal checked="true">
|
||||
Stannis Baratheon
|
||||
</ion-checkbox>
|
||||
|
||||
<ion-checkbox disabled="true">
|
||||
Petyr Baelish
|
||||
</ion-checkbox>
|
||||
|
||||
<ion-checkbox dark checked="true">
|
||||
Hodor
|
||||
</ion-checkbox>
|
||||
|
||||
<ion-checkbox secondary checked="true">
|
||||
Catelyn Stark
|
||||
</ion-checkbox>
|
||||
|
||||
<ion-checkbox royal>
|
||||
Bronn
|
||||
</ion-checkbox>
|
||||
|
||||
</ion-list>
|
||||
|
||||
</ion-content>
|
Reference in New Issue
Block a user