[英]Flex Mobile 4.6, How to pass data (selectedItem) from master to detail view in splitview
I have a tabbed view with in the second tab a splitview controller. 我有一个选项卡式视图,在第二个选项卡中有一个splitview控制器。
The master view shows a list. 主视图显示一个列表。 When selecting an item from that list it opens a second view with a new list by using navigator.pushView.
从该列表中选择一个项目时,它将通过使用navigator.pushView打开带有新列表的第二个视图。
When I select an item in the second view/list it has to be passed to the detailview. 当我在第二个视图/列表中选择一个项目时,必须将其传递到detailview。 Is there a simple solution available?
有没有简单的解决方案?
The pushView()
method has the following syntax: pushView()
方法具有以下语法:
pushView(viewClass:Class,
data:Object = null,
context:Object = null,
transition:spark.transitions:ViewTransitionBase = null):void
data specifies any data passed to the view.
data指定传递给视图的任何数据。 This object is written to the View.data property of the new view
该对象被写入新视图的View.data属性
Taken from http://help.adobe.com/en_US/flex/mobileapps/WSa122979b4619725672e48c412a3e152164-7fff.html#WSe11993ea1bd776e54e19b82b12a43a4fb49-8000 取自http://help.adobe.com/zh_CN/flex/mobileapps/WSa122979b4619725672e48c412a3e152164-7fff.html#WSe11993ea1bd776e54e19b82b12a43a4fb49-8000
If is not clear enough let me know :) 如果不够清楚,请告诉我:)
Also you can check this example http://bbishop.org/flex/flexmobileexamples/FlexMobileOnWeb.html - view source enabled 您也可以查看以下示例http://bbishop.org/flex/flexmobileexamples/FlexMobileOnWeb.html-已启用查看源代码
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.