The pending values of a batch edit: per row (the row object, not its index – sorting and filtering don't change the assignment) and property one entry with old and new value. DOM-free; the table keeps one in its batch edit service.

Example

const pending = new PendingCellChanges();
const row = { price: 10 };
pending.set(row, "price", 10, 12, "12"); // "added"
pending.set(row, "price", 12, 10, "10"); // "removed" – the old value again

Since

1.1.96

Hierarchy

  • PendingCellChanges

Constructors

Methods

  • Removes the entry of a cell.

    Parameters

    • rowKey: unknown

      the row object (or index)

    • property: string

      the property of the column

    Returns boolean

    true if there was an entry

  • Sets the pending value of a cell. The old value of an existing entry stays (the value before the first change); a value equal to it removes the entry (B8).

    Parameters

    • rowKey: unknown

      the row object (or the row index for models without objects)

    • property: string

      the property of the column

    • oldValue: unknown

      the current value in the model (used for a new entry)

    • newValue: unknown

      the new value (after the pipe)

    • rawValue: unknown

      the value as entered

    • Optional error: string

      validation message

    Returns PendingChangeResult

    what happened