zoukankan      html  css  js  c++  java
  • Displaying a Tree control as a pop up for a Flex PopUpButton control (转载)

    The following example shows how you can use a Tree control as a PopUpButton control’s pop up in Flex
    <?xml version="1.0" encoding="utf-8"?>
    <!-- http://blog.flexexamples.com/2008/02/26/displaying-a-tree-control-as-a-pop-up-for-a-flex-popupbutton-control/ -->
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
            layout
    ="vertical"
            verticalAlign
    ="middle"
            backgroundColor
    ="white">

        
    <mx:Style>
            Tree {
                textAlign: left;
                fontWeight: normal;
            }
        
    </mx:Style>

        
    <mx:XML id="mlb" source="mlb.xml" />

        
    <mx:ApplicationControlBar dock="true">
            
    <mx:PopUpButton label="Please select a team">
                
    <mx:popUp>
                    
    <mx:Tree id="tree"
                            dataProvider
    ="{mlb}"
                            labelField
    ="@label"
                            showRoot
    ="false"
                            width
    ="200"
                            rowCount
    ="8" />
                
    </mx:popUp>
            
    </mx:PopUpButton>
        
    </mx:ApplicationControlBar>

    </mx:Application>
  • 相关阅读:
    CentOS下安装nginx并且升级nginx到最新版
    简单配置nginx使之支持pathinfo
    php设置和获取cookie
    div不能被点击设置
    设置CentOS里的Mysql开启客户端远程连接
    leetcode
    background-image中url找不到路径,背景图像无法显示
    0x3F3F3F3F——ACM中的无穷大常量
    HDU 5114 Collision
    HDU 5113 Black And White
  • 原文地址:https://www.cnblogs.com/wuhenke/p/1642794.html
Copyright © 2011-2022 走看看