2014-10-19 65 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