mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
allow icon left in ion-switch
This commit is contained in:
@ -8,13 +8,10 @@
|
|||||||
List Header
|
List Header
|
||||||
</ion-header>
|
</ion-header>
|
||||||
|
|
||||||
<ion-item>
|
<ion-switch>
|
||||||
<icon wifi item-left></icon>
|
<icon wifi item-left></icon>
|
||||||
Wifi
|
Wifi
|
||||||
<div class="item-note" item-right>
|
</ion-switch>
|
||||||
Terrible
|
|
||||||
</div>
|
|
||||||
</ion-item>
|
|
||||||
|
|
||||||
<ion-item>
|
<ion-item>
|
||||||
<icon heart item-left></icon>
|
<icon heart item-left></icon>
|
||||||
@ -41,13 +38,10 @@
|
|||||||
List Header
|
List Header
|
||||||
</ion-header>
|
</ion-header>
|
||||||
|
|
||||||
<ion-item>
|
<ion-switch checked="true">
|
||||||
<icon color-wand item-left></icon>
|
<icon color-wand item-left></icon>
|
||||||
Magic
|
Magic
|
||||||
<div class="item-note" item-right>
|
</ion-switch>
|
||||||
Activated
|
|
||||||
</div>
|
|
||||||
</ion-item>
|
|
||||||
|
|
||||||
<ion-item>
|
<ion-item>
|
||||||
<icon star item-left></icon>
|
<icon star item-left></icon>
|
||||||
|
@ -22,6 +22,14 @@
|
|||||||
<icon forward item-right></icon>
|
<icon forward item-right></icon>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<ion-switch checked="true">
|
||||||
|
Switch
|
||||||
|
</ion-switch>
|
||||||
|
|
||||||
|
<ion-checkbox checked="true">
|
||||||
|
Checkbox
|
||||||
|
</ion-checkbox>
|
||||||
|
|
||||||
<button ion-item>
|
<button ion-item>
|
||||||
<icon boat item-left></icon>
|
<icon boat item-left></icon>
|
||||||
List Button Item 1
|
List Button Item 1
|
||||||
|
@ -135,6 +135,7 @@ class MediaSwitch {
|
|||||||
})
|
})
|
||||||
@IonicView({
|
@IonicView({
|
||||||
template:
|
template:
|
||||||
|
'<ng-content select="[item-left]"></ng-content>' +
|
||||||
'<ion-item-content id="{{labelId}}">' +
|
'<ion-item-content id="{{labelId}}">' +
|
||||||
'<ng-content></ng-content>' +
|
'<ng-content></ng-content>' +
|
||||||
'</ion-item-content>' +
|
'</ion-item-content>' +
|
||||||
|
@ -11,7 +11,7 @@ exports.config = {
|
|||||||
specs: 'dist/e2e/**/*e2e.js',
|
specs: 'dist/e2e/**/*e2e.js',
|
||||||
//specs: 'dist/e2e/switch/basic/*e2e.js',
|
//specs: 'dist/e2e/switch/basic/*e2e.js',
|
||||||
|
|
||||||
sleepBetweenSpecs: 1300,
|
sleepBetweenSpecs: 1500,
|
||||||
|
|
||||||
platformDefauls: {
|
platformDefauls: {
|
||||||
browser: 'chrome',
|
browser: 'chrome',
|
||||||
|
Reference in New Issue
Block a user