@/utils APIs
- logger
- isRedirect
- getSingleArrayVal
- deepCopy
- percentToSeconds
- percentToMinutesAndSeconds
- capture
- secondsToMinutesAndSecondes
- filterDefaults
- extractContentType
- inElectron
- getRandomStr
- applyMixins
- rand
- folderName
- clamp
- expandHomeDir
- scrollBlockEleIntoView
- getBlockNodeByIdx
- copyToClipBoard
- updateQueryStringParameter
- timeFromNow
- getUnixTs
- parseError
- useQuery
- generateID
- Entry
- dynamicPackages
- getShadowRoot
- download
- pxToVw
- sleep
- dataURLtoFile
- ossClient
- getCssProperty
- stringRgba
- $
- isAsyncFunction
- unique
- getRectangleEdges
- getActiveCellsInfo
- getPalette
- getSafetyDataConfig
- customMerge
- copyData
- isPromise
- getNextEdge
- isServer
- generateColumn
- get
- mockId
- filterAttributesByRegExp
- filterAttributes
- isLeaf
- defaultGetChildren
- differenceTempMergedCells
- getEditorRoot
- ActionIconCallback
- getSheetComponentOptions
- getDrillDownCache
- buildDrillDownOptions
- handleDrillDown
- handleActionIconClick
- getDataCellId
- createIndexGetter
- MergedCellConvertTempMergedCells
- mergeTempMergedCell
- updateMergedCells
- removeUnmergedCellsInfo
- getTempMergedCell
- getVisibleInfo
- getInvisibleInfo
- getPolygonPoints
@/utils#getDataCellId TypeScript Examples
The following examples show how to use
@/utils#getDataCellId.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: selected-cell-move.ts From S2 with MIT License | 6 votes |
private generateCellMeta(spreadsheet: SpreadSheet, row: number, col: number) {
const {
isTableMode,
facet: {
layoutResult: { colLeafNodes, rowLeafNodes },
},
} = spreadsheet;
const rowId = isTableMode() ? String(row) : rowLeafNodes[row].id;
const colId = colLeafNodes[col].id;
return {
rowIndex: row,
colIndex: col,
id: getDataCellId(rowId, colId),
type: CellTypes.DATA_CELL,
};
}