Skip to content

BasesView.createTransaction method

BasesView › createTransaction

Unofficial

Runs a batch of property changes as one transaction that can be undone and redone.

Signature:

createTransaction(callback: (changes: BasesViewTransactionChange[]) => void | Promise<void>): Promise<void>

Parameters:

Parameter Type Description
callback (changes: BasesViewTransactionChange[]) => void | Promise<void> Receives the changes array to populate.

Returns: Promise<void>A promise that resolves when the transaction is committed.