Flex Spark列表,onHover/onClick改变currentState
我正在使用带有 Tilelayout 的 Flex4 Spark 列表。在itemrenderer中,定义了4种状态。 MouseOver
和 MouseClick
上的状态发生变化,这不是我的目的。
这是一些代码:
<s:List id="tileList" click="tileList_itemClick(event)" styleName="widgetList">
<s:layout>
<s:TileLayout requestedColumnCount="7" />
</s:layout>
</s:List>
var factory:ClassFactory = new ClassFactory(ExamWidgetRenderer);
tileList.itemRenderer = factory;
tileList.dataProvider = items;
在 itemRenderer 中:
<s:states>
<s:State name="InitialState"/>
<s:State name="Completed"/>
<s:State name="Disabled"/>
<s:State name="Locked"/>
</s:states>
状态由 dataprovider 设置。 不受 MouseEvent 的影响。
有没有人也遇到过这个问题,解决了这个问题?
谢谢!
I'm using a Flex4 Spark list with a Tilelayout. In the itemrenderer, 4 states are defined.
The state changes on MouseOver
and MouseClick
, which is not my purpose.
This is some code:
<s:List id="tileList" click="tileList_itemClick(event)" styleName="widgetList">
<s:layout>
<s:TileLayout requestedColumnCount="7" />
</s:layout>
</s:List>
var factory:ClassFactory = new ClassFactory(ExamWidgetRenderer);
tileList.itemRenderer = factory;
tileList.dataProvider = items;
In the itemRenderer:
<s:states>
<s:State name="InitialState"/>
<s:State name="Completed"/>
<s:State name="Disabled"/>
<s:State name="Locked"/>
</s:states>
The states are set by the dataprovider.
There is no influence of an MouseEvent.
Has anyone, who also had this problem, solved this?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试
autoDrawBackground="false"
它可能会解决您的问题You could try it
autoDrawBackground="false"
it may be solve your problem