SMART datagrid v1.4 > Classes > DisplayOptions

[ grids ver.1.3.6]   Back  Forward

DataLudi.DisplayOptions.cursorCallback  property

마우스가 데이터셀 위에 올라갈 때 표시되는 마우스 커서 모양을 리턴하는 콜백 함수. 

function (index:CellIndex):String | undefined;

콜백 함수에서 undefined 등 지정되지 않는 값을 리턴하면 ValueColumn.cursor에 지정한 커서가 표시된다. 

커서 모양은 css cursor에서 사용되는 값을 그대로 사용한다. 

기본값은 null.

Getter
function cursorCallback(): Function
Setter
function setCursorCallback(value: Function)
Code -1
    grid.setOptions({
        display: {
            cursorCallback: function (index) {
                if (index.column.name() == 'country') {
                    if (index.rowIndex % 2) {
                        return "pointer";
                    } else {
                        return "not-allowed";
                    }
                }
            }
        }
    });
See Also
ValueColumn.cursor
Examples
Cursors