angularjs - How to add icon on row in ionic framework? -
i trying make simple demo in ionic. have 1 footer having 1 icon ion-compose (bottom left icon). when click on icon show pop screen enter name in text field , press save button. generates row have same text written in textfield of popup screen. need add icon buttons on row (like delete button, edit button). can add icon on dynamically generated row did in footer (bottom left ion-composer)?
please add ion on row
here code
http://codepen.io/anon/pen/qdeepw
<ion-item ng-repeat="item in items"> {{item.testcase}} <ion-reorder-button class="ion-navicon"></ion-reorder-button> </ion-item>
please press bottom button on left side of footer .when click show pop snd fill entry generate row.i need add icons on row show image want need delete icon , edit button icon on row..you can choose amy icon link http://ionicons.com/
related: how add icons in row generated dynamically in ionic
icons added. have add functions buttons.
html:
<ion-item ng-repeat="item in items"> {{item.testcase}} <button class="button {{item.close}}"></button> <button class="button {{item.edit}}"></button>
js:
mypopup.then(function(res) { console.log('tapped!', res); if(typeof res!='undefined') res.edit="ion-edit"; res.close="ion-close"; $scope.items.push(res) console.log($scope.items); });
Comments
Post a Comment