Function: isSingleCellSelection()
function isSingleCellSelection(selection): boolean
Defined in: submodules/univer/packages/sheets/src/commands/commands/utils/selection-utils.ts:205
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.