我正在使用sephiroth复选框树,我试图隐藏文件夹和图标这里是我在内联代码中所拥有的,但它似乎无法正常工作。有什么建议吗?
TreeCheckBox {
backgroundAlpha: 0.0;
folderClosedIcon: ClassReference(null);
folderOpenIcon: ClassReference(null);
defaultLeafIcon: ClassReference(null);
}
答案 0 :(得分:0)
这对我有用,代码如下:
<?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" />