如何在nativescript中触发侧抽屉打开和关闭?

时间:2018-04-02 11:31:36

标签: nativescript

需要触发侧抽屉关闭和打开。我如何使用drawerOpenedEvent和drawerClosedEvent在nativescript中触发它?

enter image description here

1 个答案:

答案 0 :(得分:0)

var page = topmost().currentPage;
page.getViewById("drawer").toggleDrawerState();