mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
@ -36,10 +36,11 @@ import {CSS, raf} from 'ionic/util/dom';
|
|||||||
template:
|
template:
|
||||||
'<ng-content select="ion-item-options"></ng-content>' +
|
'<ng-content select="ion-item-options"></ng-content>' +
|
||||||
'<ion-item-sliding-content>' +
|
'<ion-item-sliding-content>' +
|
||||||
|
'<ng-content select="[item-left]"></ng-content>' +
|
||||||
|
'<ng-content select="[item-right]"></ng-content>' +
|
||||||
'<ion-item-content>' +
|
'<ion-item-content>' +
|
||||||
'<ng-content></ng-content>'+
|
'<ng-content></ng-content>'+
|
||||||
'</ion-item-content>' +
|
'</ion-item-content>' +
|
||||||
'<ng-content select="[item-right]"></ng-content>' +
|
|
||||||
'</ion-item-sliding-content>',
|
'</ion-item-sliding-content>',
|
||||||
directives: [NgIf]
|
directives: [NgIf]
|
||||||
})
|
})
|
||||||
|
@ -8,12 +8,12 @@ class E2EApp {
|
|||||||
constructor() {
|
constructor() {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.shouldShow = true;
|
this.shouldShow = true;
|
||||||
}, 5000);
|
}, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
getItems() {
|
getItems() {
|
||||||
console.log('getItems');
|
console.log('getItems');
|
||||||
return [1,2,3,4];
|
return [0,1];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</ion-item-options>
|
</ion-item-options>
|
||||||
</ion-item-sliding>
|
</ion-item-sliding>
|
||||||
|
|
||||||
<ion-item-sliding text-wrap detail-push>
|
<ion-item-sliding text-wrap detail-push *ng-if="shouldShow">
|
||||||
<h3>Ben Sperry</h3>
|
<h3>Ben Sperry</h3>
|
||||||
<p>
|
<p>
|
||||||
I like paper
|
I like paper
|
||||||
@ -34,21 +34,46 @@
|
|||||||
</ion-item-options>
|
</ion-item-options>
|
||||||
</ion-item-sliding>
|
</ion-item-sliding>
|
||||||
|
|
||||||
<ion-item-sliding text-wrap detail-push *ng-if="shouldShow">
|
<ion-item-sliding>
|
||||||
<h3>Max Lynch</h3>
|
<icon mail item-left></icon>
|
||||||
<p>
|
One Line w/ Icon, div only text
|
||||||
Hey do you want to go to the game tonight?
|
<ion-item-options>
|
||||||
</p>
|
<button primary>Archive</button>
|
||||||
|
</ion-item-options>
|
||||||
|
</ion-item-sliding>
|
||||||
|
|
||||||
|
<ion-item-sliding>
|
||||||
|
<ion-avatar item-left>
|
||||||
|
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAAAAACH5BAAAAAAALAAAAAABAAEAAAICTAEAOw==">
|
||||||
|
</ion-avatar>
|
||||||
|
One Line w/ Avatar, div only text
|
||||||
|
<ion-item-options>
|
||||||
|
<button primary>Archive</button>
|
||||||
|
</ion-item-options>
|
||||||
|
</ion-item-sliding>
|
||||||
|
|
||||||
|
<ion-item-sliding>
|
||||||
|
<ion-thumbnail item-left>
|
||||||
|
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAAAAACH5BAAAAAAALAAAAAABAAEAAAICTAEAOw==">
|
||||||
|
</ion-thumbnail>
|
||||||
|
<h2>Two Lines w/ Thumbnail, H2 Header</h2>
|
||||||
|
<p>Paragraph text.</p>
|
||||||
<ion-item-options>
|
<ion-item-options>
|
||||||
<button primary>Archive</button>
|
<button primary>Archive</button>
|
||||||
</ion-item-options>
|
</ion-item-options>
|
||||||
</ion-item-sliding>
|
</ion-item-sliding>
|
||||||
|
|
||||||
<ion-item-sliding text-wrap detail-push *ng-for="#item of getItems()">
|
<ion-item-sliding text-wrap detail-push *ng-for="#item of getItems()">
|
||||||
<h3>{{item}}</h3>
|
<h3>ng-for {{item}}</h3>
|
||||||
<ion-item-options>
|
<ion-item-options>
|
||||||
<button primary>Archive</button>
|
<button primary>Archive</button>
|
||||||
</ion-item-options>
|
</ion-item-options>
|
||||||
</ion-item-sliding>
|
</ion-item-sliding>
|
||||||
|
|
||||||
</ion-list>
|
</ion-list>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
img {
|
||||||
|
height: 100px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
Reference in New Issue
Block a user