API Reference
@univerjs
@univerjs/sheets
functions
Issinglecellselection

@univerjs/sheets v0.4.2Docs


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

ParameterType
selectionNullable<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)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.