@univerjs/sheets v0.4.2 • Docs
Function: isSingleCellSelection()
function isSingleCellSelection(selection): boolean
Examine if a selection only contains a single cell (a merged cell is considered as a single cell in this case).
Parameters
Parameter | Type |
---|---|
selection | Nullable <ISelectionWithStyle & { primary : ISelectionCell ; }> |
Returns
boolean
true
if the selection only contains a single cell.
Defined in
packages/sheets/src/commands/commands/utils/selection-utils.ts:204 (opens in a new tab)