2014-10-19 127 views

回答

1

你可以添加一个刷卡听众视口,并调用事件相应

Ext.Viewport.bodyElement.on('swipe', function (event, node, options){ 
    var button = Ext.ComponentQuery.query('button'); 
    if (event.direction == 'right') { 
     button[0]._handler(); 
    } else { 
     button[1].fireAction('tap'); 
    } 

}); 

小提琴:https://fiddle.sencha.com/#fiddle/c1p

  • 显然,这小提琴有缺陷,并应仅用于所以你可以有一个想法如何实施您的解决方案。
+0

非常感谢显示侧面菜单解决方案。它工作完美。 – user2842237 2014-10-20 04:48:58

+0

不错,很高兴我可以帮助:) – 2014-10-20 05:36:53