Skip to content

Class

Undo entry for renaming a sheet.

When renaming a sheet to a name that was previously referenced (but didn’t exist), a placeholder sheet gets merged into the renamed sheet. In this case:

  • version contains the transformation version for restoring formulas during undo
  • mergedPlaceholderSheetId contains the ID of the placeholder sheet that was merged

When renaming to a name not previously referenced, both optional params are undefined.

+ new RenameSheetUndoEntry(sheetId: number, oldName: string, newName: string, version?: undefined | number, mergedPlaceholderSheetId?: undefined | number): RenameSheetUndoEntry

Defined in hyperformula/src/UndoRedo.ts:306

Parameters:

Name Type
sheetId number
oldName string
newName string
version? undefined | number
mergedPlaceholderSheetId? undefined | number

Returns: RenameSheetUndoEntry

OptionalReadonly

• mergedPlaceholderSheetId? : undefined | number

Defined in hyperformula/src/UndoRedo.ts:312


Readonly

• newName: string

Defined in hyperformula/src/UndoRedo.ts:310


Readonly

• oldName: string

Defined in hyperformula/src/UndoRedo.ts:309


Readonly

• sheetId: number

Defined in hyperformula/src/UndoRedo.ts:308


OptionalReadonly

• version? : undefined | number

Defined in hyperformula/src/UndoRedo.ts:311

▸ doRedo(undoRedo: UndoRedo): void

Defined in hyperformula/src/UndoRedo.ts:321

Parameters:

Name Type
undoRedo UndoRedo

Returns: void


▸ doUndo(undoRedo: UndoRedo): void

Defined in hyperformula/src/UndoRedo.ts:317

Parameters:

Name Type
undoRedo UndoRedo

Returns: void


▸ getReferencedOldDataVersions(): number[]

Defined in hyperformula/src/UndoRedo.ts:325

Returns: number[]