FLEX选项卡

    技术2022-05-19  23

    flex中的选项卡的使用如下代码:

    <s:Panel x="51" y="35" width="824" height="401"> <mx:TabNavigator id="mynavigator" x="103" y="31" width="564" height="300" resizeToContent="true" > <s:NavigatorContent label="选项卡 1" width="100%" height="100%"> <s:Label text="选项卡1的内容"/> </s:NavigatorContent> <s:NavigatorContent label="选项卡 2" width="100%" height="100%"> <s:Label text="选项卡2的内容"/> </s:NavigatorContent> <s:NavigatorContent label="选项卡 3" width="100%" height="100%"> <s:Label text="选项卡3的内容"/> </s:NavigatorContent> </mx:TabNavigator> <s:Button x="742" y="79" label="选项卡1" click="this.mynavigator.selectedIndex=0;" /> <s:Button x="743" y="176" label="选项卡3" click="this.mynavigator.selectedIndex=2;" /> <s:Button x="742" y="125" label="选项卡2" click="this.mynavigator.selectedIndex=1;"/> </s:Panel>

     

    通过下方的三个按钮可以准确定位到某一个选项卡


    最新回复(0)