开发者

Is there a way to use a viewstack with a tree list

开发者 https://www.devze.com 2023-02-08 06:15 出处:网络
I want to know if I can use a tree and when and i开发者_如何学Pythontem in the tree is clicked the viewstack changes to that certain item?Yes. Try something like this:

I want to know if I can use a tree and when and i开发者_如何学Pythontem in the tree is clicked the viewstack changes to that certain item?


Yes. Try something like this:

<mx:Tree id="tree" click="viewStack.selectedChild = tree.selectedItem" />

If your dataprovider for the tree does not contain the ViewStack component you're looking for:

  1. Handle the tree click event
  2. Match the tree selectedItem to the component you want in the ViewStack
  3. Set ViewStack.selectedChild to that component

If you still need help, post some code!

0

精彩评论

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