如果我在 DataGrid
中将“buttonMode
”和“useHandCursor
”的属性设置为 true,它不会像我预期的那样工作。只有当我将光标移动到两行之间的边缘时,才会显示手形光标。
我期望的是无论光标移动到哪里,它都应该始终显示手形光标。
以下itemRenderer
:
<?xml version="1.0" encoding="utf-8"?>
<mx:Label
xmlns:mx="http://www.adobe.com/2006/mxml"
useHandCursor="true" buttonMode="true">
<mx:Script>
<![CDATA[
import valueObject.Employee;
override public function set data(value:Object):void{
super.data = value;
var employee:Employee = value as Employee;
this.text = employee.lastName;
}
]]>
</mx:Script>
</mx:Label>
最佳答案
您应该在 ItemRenderer 类上设置 useHandCursor="true"buttonMode="true"mouseChildren="false"。然后,在 DG 上,您可以设置 useHandCursor="false",这样手形光标就不会显示在 DG 边框和/或滚动条上。
关于apache-flex - DataGrid 中的 buttonMode 和 useHandCursor 属性不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4043593/