@univerjs/sheets v0.5.0-beta.1 • 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
submodules/univer/packages/sheets/src/commands/commands/utils/selection-utils.ts:204