mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(collectionRepeat): automatically set width/height style to match collection-item-{width,height}
Closes #3034. Closes #1806.
This commit is contained in:
@@ -31,9 +31,7 @@
|
||||
ng-click="alert(item)"
|
||||
collection-repeat="item in items"
|
||||
collection-item-height="85"
|
||||
collection-item-width="'100%'"
|
||||
ng-style="{height: '85px'}"
|
||||
style="left: 0; right: 0;">
|
||||
collection-item-width="'25%'">
|
||||
<h2>{{item.text}}</h2>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis porttitor diam urna, vitae consectetur lectus aliquet quis.</p>
|
||||
<ion-option-button>DEL</ion-option-button>
|
||||
|
||||
Reference in New Issue
Block a user