【问题标题】:TreeCheckbox CSS visible foldersTreeCheckbox CSS 可见文件夹
【发布时间】:2011-02-15 16:31:23
【问题描述】:

我正在使用 sephiroth 复选框树,我正在尝试隐藏文件夹和图标,这是我在内联代码中所拥有的,但它似乎不起作用。有什么建议吗?

TreeCheckBox {
  backgroundAlpha: 0.0;
  folderClosedIcon: ClassReference(null);
  folderOpenIcon: ClassReference(null); 
  defaultLeafIcon: ClassReference(null);
}

【问题讨论】:

    标签: css flash apache-flex adobe external


    【解决方案1】:

    这对我有用,代码如下:

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" xmlns:controls="it.sephiroth.controls.*">
        <mx:XML id="wut">
            <node label="Mail Box">
                <node label="Inbox">
                    <node label="Marketing"/>
                    <node label="Product Management"/>
                    <node label="Personal"/>
                </node>
                <node label="Outbox">
                    <node label="Professional"/>
                    <node label="Personal"/>
                </node>
                <node label="Spam"/>
                <node label="Sent"/>
            </node>
        </mx:XML>
        <mx:Style>
            TreeCheckBox {
          backgroundAlpha: 0.0;
          folderClosedIcon: ClassReference(null);
          folderOpenIcon: ClassReference(null); 
          defaultLeafIcon: ClassReference(null);
        }
    
        </mx:Style>
        <controls:TreeCheckBox dataProvider="{wut}" width="100%" height="100%" showRoot="true" labelField="@label" />
    </mx:Application>
    

    我的猜测是您没有在应用程序中正确链接样式文件。 如:

    <mx:Style source="/correct-path-relative-to-src/my.css" />
    

    【讨论】:

    • 感谢您的回复。我发现了问题,我正在调用的组件未列为模块。 :P
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多