refactor(item): add a wrapper for inputs in order to work with item right vertically

closes #5731
This commit is contained in:
Brandy Carney
2016-03-09 14:33:42 -05:00
parent 27b6e2847d
commit 4505730ca2
7 changed files with 64 additions and 33 deletions

View File

@ -44,11 +44,14 @@ import {Label} from '../label/label';
template:
'<ng-content select="[item-left],ion-checkbox"></ng-content>' +
'<div class="item-inner">' +
'<ng-content select="ion-label"></ng-content>' +
'<ion-label *ngIf="_viewLabel">' +
'<ng-content></ng-content>'+
'</ion-label>' +
'<ng-content select="[item-right],ion-radio,ion-toggle,ion-select,ion-input,ion-textarea"></ng-content>' +
'<div class="input-wrapper">' +
'<ng-content select="ion-label"></ng-content>' +
'<ion-label *ngIf="_viewLabel">' +
'<ng-content></ng-content>'+
'</ion-label>' +
'<ng-content select="ion-select,ion-input,ion-textarea"></ng-content>' +
'</div>' +
'<ng-content select="[item-right],ion-radio,ion-toggle"></ng-content>' +
'</div>' +
'<ion-button-effect></ion-button-effect>',
host: {