SMART datagrid v.1 > Classes > DisplayOptions

Back  Forward

DataLudi.DisplayOptions.wheelDelta  property

The number of unit rows which will be moved if scroll the mouse wheel when enabled vertical scroll. 

If specify as 0, wheel scroll will be disabled. If specify as a negative value, it will be scrolled away from the system setting. And, if vertical scroll is unnecessary and horizontal scroll is enabled, it will be scrolled horizontally according to the setting specified in horzWheelDelta

Defaults to 3.

Getter
function wheelDelta(): Integer
Setter
function setWheelDelta(value: Integer)
Code -1
    grid.setOptions({
        display: {
            wheelDelta: 3,
            horzWheelDelta: 1
        }
    });
Code -2
    grid.setDisplayOptions({
        wheelDelta: 3,
        horzWheelDelta: 1
    });
Code -3
    grid.displayOptions().setWheelDelta(3);
See Also
horzWheelDelta
bubbleWheelEvents
examples
Scroll Bar