allow icon left in ion-switch

This commit is contained in:
Adam Bradley
2015-08-31 21:16:05 -05:00
parent 089fc7fe99
commit 4ea04e5280
4 changed files with 14 additions and 11 deletions

View File

@ -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>

View File

@ -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

View File

@ -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>' +

View File

@ -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',