问题
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