Abstract Construct a new selection model.
The options for initializing the model.
Private _changedPrivate _selectionReadonly Abstract cursorThe column index of the cursor.
This is -1 if the selection model is empty.
Readonly Abstract cursorThe row index of the cursor.
This is -1 if the selection model is empty.
Readonly dataThe data model associated with the selection model.
Readonly Abstract isWhether the selection model is empty.
An empty selection model will yield an empty selections iterator.
Get the selection mode for the model.
Abstract clearAbstract currentProtected 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.
Abstract moveMove 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.
Selection model implementations should update their selections in a manner that is relevant for the changes to the data model.
The default implementation of this method is a no-op.
Abstract selectSelect the specified cells.
The arguments for the selection.
Abstract selectionsGenerated using TypeDoc
A base class for creating data grid selection models.
Notes
If the predefined selection models are insufficient for a particular use case, a custom model can be defined which derives from this class.