SMART datagrid v1.4 > 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";
}
}
}
}
});