SMART datagrid v.1 > 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
光标