SMART datagrid v.1 > Classes > DisplayOptions

[ grids ver.1.3.6]   Back  Forward

DataLudi.DisplayOptions.selectDisplay  property

It specifies the way of displaying selection area by SelectionDisplay constant. 

If specify as SelectionDisplay.CELL, in the data cells which are contained in selection area, it will draw the cell background by GridStyles.selectedBackground and display the text with the color specified in selectedColor. In addition, in the case of the renderer of displaying the shape, it can display the shape by using the properties specified in shapeSelectedColor, shapeSelectedBorder

Defaults to SelectionDisplay.MASK.

Getter
function selectDisplay(): SelectionDisplay
Setter
function setSelectDisplay(value: SelectionDisplay)
Code -1
    grid.setOptions({
        display: {
            selectDisplay: DataLudi.SelectionDisplay.CELL
        }
    });
Code -2
    grid.setDisplayOptions({
        selectDisplay: DataLudi.SelectionDisplay.CELL
    });
Code -3
    grid.displayOptions().setSelectDisplay(DataLudi.SelectionDisplay.CELL);
See Also
SelectionDisplay
GridStyles.selectedBackground
GridStyles.selectedColor
GridStyles.shapeSelectedColor
GridStyles.shapeSelectedBorder
Examples
Selection Display