SMART datagrid v.1 > Classes > DisplayOptions
返回当鼠标位于数据单元格上方时所显示的鼠标光标形状的回调函数。
如果在回调函数中,返回如undefined等未被指定的值,就会显示指定在ValueColumn.cursor的光标。
光标形状将会直接使用被用于css cursor的值。
默认值为null.
grid.setOptions({
display: {
cursorCallback: function (index) {
if (index.column.name() == 'country') {
if (index.rowIndex % 2) {
return "pointer";
} else {
return "not-allowed";
}
}
}
}
});