如何添加这是在离子动态生成行图标 [英] how to add icons in row which is generated dynamically in ionic

查看:170
本文介绍了如何添加这是在离子动态生成行图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使离子。我简单的演示有一个有脚注一个图标离子撰写(左下图标)。当我在那个图标点击它显示一个弹出屏幕,我进入命名文本字段和preSS 保存按钮。然后它生成一个排它具有相同的文字写在弹出screen.I的文本字段需要在行添加图标按钮(如删除按钮,编辑按钮)。可我们添加的,因为我在做注脚动态生成的行(左下离子作曲家)图标。
请行添加离子

I am trying to make simple demo in ionic .I have one footer having one icon ion-compose(bottom left icon).When i click on that icon it show a pop up screen I enter name in text field and press save button .then it generate a row which have same text as written in textfield of popup screen.I need to add icon buttons on row (like delete button , edit button).can we add icon on dynamically generated row as I did in footer (bottom left ion-composer). Please add ion on row

这是我的code

的http://$c$cpen.io/anon/pen/qdEEPW

   <ion-item ng-repeat="item in items">
                {{item.testcase}}
                <ion-reorder-button class="ion-navicon"></ion-reorder-button>

            </ion-item>

请在页脚左侧preSS底部的按钮。当点击它显示弹出SND填写入境它产生row.I需要添加一行图标

please press bottom button on left side of footer .when click it show pop up snd fill entry it generate the row.I need to add icons on row

推荐答案

您必须能够修改他们的框架从项目反对采取新的键/值,并将其传递给类,它给人的股利。

you will have to be able to modify their framework to take a new key/value from the items object and pass it to the class that it gives the div.

res.class="icon-class";
$scope.items.push(res)

我修改codePEN表明您可以通过项目对象的类键/值
HTTP://$c$cpen.io/anon/pen/XbJJzO

这篇关于如何添加这是在离子动态生成行图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆