SMART datagrid v.1 > Classes > DisplayOptions

[ grids ver.1.3.6]   Back  Forward

DataLudi.DisplayOptions.cursorCallback  property

Callback function which returns the mouse cursor shape of being displayed when the mouse is over data cell. 

function (index:CellIndex):String | undefined;

If return the unspecified value like undefined in callback function, the cursor which has been specified in ValueColumn.cursor will be displayed. 

The cursor shape will directly use the value which is used in css cursor

Defaults to 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