我正在使用AlloySliderMenu小部件构建Titanium SDK 3的应用程序。Titanium/Alloy小部件和控制器
此小部件使用Facebook应用程序的滑块菜单。这听起来很容易使用,但我面临以下问题。
在index.xml中我需要小部件。
在应用程序中的index.js,我有以下的代码:
currentView = Alloy.createController('list').getView();
//ds is the slider menu id
//contentview in the main panel of the menu
$.ds.contentview.add(currentView);
这将在应用程序的主窗口,我的“名单”视图。
问题是,在我的list.js控制器中,我有一个函数,它应该改变$ .ds.contentview内容ith一个按钮的点击操作的另一个视图。 但我无法从列表容器访问$ .ds.contentview并使用此对象。
我试过Alloy.createWidget等..但没办法,它不会工作。