本文へ移動

@eightkk/vue-weave / core / applyTimelineSheetEdit

Function: applyTimelineSheetEdit() ​

applyTimelineSheetEdit<R>(rows, change, appliers): R[]

Defined in: src/core/sheetEditing.ts:93

Apply a spreadsheet batch (or single field and cell edits) to rows as one step. Returns a new array in the same order; rows without edits keep their identity, and several edits of one row are applied in order (field edits first). Throws an Error for an invalid or duplicate row ID, an edit of an unknown row, or a change that has edits of a kind without its applier; nothing is applied then. A callback that changes the row ID also throws an Error.

Type Parameters ​

R ​

R extends TimelineRow<unknown>

Parameters ​

rows ​

readonly R[]

change ​

TimelineSheetChanges<R>

appliers ​

TimelineSheetAppliers<R>

Returns ​

R[]

MIT ライセンスで公開しています。