mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-24 06:22:45 +08:00
37 lines
1010 B
HTML
37 lines
1010 B
HTML
<ion-navbar *navbar>
|
|
<ion-title>Item Groups</ion-title>
|
|
<ion-nav-items secondary>
|
|
<button (click)="reload()">Reload</button>
|
|
</ion-nav-items>
|
|
</ion-navbar>
|
|
|
|
<ion-content class="outer-content">
|
|
|
|
<ion-list>
|
|
<ion-item-group *ng-for="#timeSlot of data">
|
|
|
|
<ion-item-divider sticky>
|
|
{{timeSlot.time}}
|
|
</ion-item-divider>
|
|
|
|
<ion-item-sliding *ng-for="#session of timeSlot.talks" [attr.category]="session.category" #sliding-item>
|
|
<button ion-item (click)="openSession(session)">
|
|
<h3>{{session.name}}</h3>
|
|
<p>
|
|
<span>{{session.timestart}}</span>
|
|
—
|
|
<span>{{session.timeend}}</span>
|
|
:
|
|
<span>{{session.location}}</span>
|
|
</p>
|
|
</button>
|
|
<ion-item-options>
|
|
<button (click)="addFavorite(timeSlot, session, slidingItem)">Add to<br>Favorites</button>
|
|
</ion-item-options>
|
|
</ion-item-sliding>
|
|
</ion-item-group>
|
|
|
|
</ion-list>
|
|
|
|
</ion-content>
|