@univerjs/engine-formula v0.5.0-beta.1Docs


Function: getRangeWithRefsString()

function getRangeWithRefsString(refString, getSheetIdByName): IUnitRangeWithName[]

implement getSheetIdByName function getSheetIdByName(name: string) { return univerInstanceService.getCurrentUnitForType(UniverInstanceType.UNIVER_SHEET)?.getSheetBySheetName(name)?.getSheetId() || ”; }

Parameters

ParameterType
refStringstring
getSheetIdByName(name) => string

Returns

IUnitRangeWithName[]

Defined in

submodules/univer/packages/engine-formula/src/engine/utils/reference.ts:353