[英]Sencha touch 2.0 and iphone : add element to panel dynamically and setActiveItem
[英]add Items to Sencha Nested List
嗨,我在向Sencha嵌套列表组件添加新项目时遇到问题。
目前我的代码如下所示:
var newItem = nestedList.add({text:rowData.name});
nestedList.doLayout();
问题是无论我在多久一次调用doLayout时,项目都不会显示。 在调试nestedList对象时,将项目正确放置在items数组中。
问候Nexum
尝试调用nestedlist.update()那就是我在普通列表上进行布局之前所调用的
nestedList.down("list").add({});
nestedList.down("list").refresh();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.