开发者

Navigating directly to the second tab in tab navigator

开发者 https://www.devze.com 2023-01-02 00:12 出处:网络
I have a component mxml in which i have a save button, on click of the save button i need to display another component which will be in a tab navigator, for this I am using the view stack. My problem

I have a component mxml in which i have a save button, on click of the save button i need to display another component which will be in a tab navigator, for this I am using the view stack. My problem is, on click of save I need to display the second tab i开发者_运维问答nstead of the first tab, but defaultly the first tab will be displayed.

How could this be accomplished?

Thanks!

cheers,

Deena


TabNavigator and ViewStack have an attribute "selectedIndex" which you can set to 1.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号