mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
radio/checkbox example
This commit is contained in:
@ -9,6 +9,11 @@
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.checkbox input {
|
||||||
|
position: relative;
|
||||||
|
left: -9999px;
|
||||||
|
}
|
||||||
|
|
||||||
.checkbox-on {
|
.checkbox-on {
|
||||||
display: none;
|
display: none;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
<ion-content>
|
<ion-content>
|
||||||
<form (^submit)="doSubmit($event)" [ng-form-model]="fruitsForm">
|
<form (^submit)="doSubmit($event)" [ng-form-model]="fruitsForm">
|
||||||
<ion-checkbox icon-on="ion-android-checkmark-circle"><input #apple type="checkbox" ng-control="appleCtrl"></ion-checkbox>
|
<ion-list>
|
||||||
|
<ion-checkbox icon-on="ion-android-checkmark-circle"><label>Apple</label><input #apple type="checkbox" ng-control="appleCtrl"></ion-checkbox>
|
||||||
|
|
||||||
<ion-checkbox><label>Test</label><input #banana type="checkbox" ng-control="bananaCtrl"></ion-checkbox>
|
<ion-checkbox><label>Banana</label><input #banana type="checkbox" ng-control="bananaCtrl"></ion-checkbox>
|
||||||
|
<ion-list>
|
||||||
|
|
||||||
<!-- <ion-checkbox ng-control="appleCtrl">
|
<!-- <ion-checkbox ng-control="appleCtrl">
|
||||||
Apples
|
Apples
|
||||||
|
@ -9,6 +9,11 @@ $radio-padding: 0 15px !default;
|
|||||||
padding: $radio-padding;
|
padding: $radio-padding;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.radio input {
|
||||||
|
position: relative;
|
||||||
|
left: -9999px;
|
||||||
|
}
|
||||||
|
|
||||||
.radio-on {
|
.radio-on {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user