Ext.dataview.component.DataItem descendant with a complex UI

自作多情 提交于 2019-12-12 10:04:10

问题


I am creating a custom DataItem that will raise events when tapped.

The example on page http://www.sencha.com/blog/dive-into-dataview-with-sencha-touch-2-beta-2 is pretty ok but I couldn't find a way to create a complex ui for the item. The sample has an hbox layout and creates the controls in it. My dataitem also has an hbox layout but on the far right I have to lay three buttons in a vbox layout. Do I have to create another control for the vbox and the buttons in it?

I dont' want to catch DOM events, I want to do it the Sencha Touch way.

Thanks.


回答1:


I've added a demo to sencha fiddle. It might give you an idea on how to proceed. Here is the link.



来源:https://stackoverflow.com/questions/14909461/ext-dataview-component-dataitem-descendant-with-a-complex-ui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!