Construct a new selection model.
The options for initializing the model.
Private _cursorPrivate _cursorPrivate _cursorPrivate _selectionsReadonly dataThe data model associated with the selection model.
The column index of the cursor.
The row index of the cursor.
Whether the selection model is empty.
Get the selection mode for the model.
Protected emitEmit the changed signal for the selection model.
Subclasses should call this method whenever the selection model has changed so that attached data grids can update themselves.
Test whether any selection intersects a cell.
Whether any selection intersects the cell.
This method may be reimplemented in a subclass.
The row index of interest.
The column index of interest.
Test whether any selection intersects a column.
Whether any selection intersects the column.
This method may be reimplemented in a subclass.
The column index of interest.
Test whether any selection intersects a row.
Whether any selection intersects the row.
This method may be reimplemented in a subclass.
The row index of interest.
Move cursor down/up/left/right while making sure it remains within the bounds of selected rectangles
The direction of the movement.
Protected onA signal handler for the data model changed signal.
The arguments for the signal.
Select the specified cells.
The arguments for the selection.
Generated using TypeDoc
A basic selection model implementation.
Notes
This selection model is sufficient for most use cases where structural knowledge of the data source is not required.