1
我为应用程序使用Sencha Touch 2.4.1。该emptyText没有显示在列表上,当我通过Safari浏览器调试,我看到了一个不正确的风格已被应用在包含emptyText div.Applied风格的DIV是:Sencha emptyText not showing
<div class ="x-unsized x-list-emptytext x-layout-fit-item x-has-height" id="ext-component-16" style>
<div class="x-innerhtml" id="ext-element-140">No Favorites</div>
</div>
的方式我加载我的数据是我正在做一个AJAX调用,获取结果数组,并将该数组设置在绑定到列表的Store上。我试图以编程方式和在Architect中设置空文本。
任何指针解决这个将不胜感激。
谢谢!
尝试使用Ext.getCmp('ext-component-16')看到initialConfig – Baidaly
make deferEmptyText:false,那么它将工作 – Amar1989
我试过deferEmptyText:false也不幸解决了这个问题。 – userx