A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/grid/api/history/afterundo_event/ below:

Website Navigation


JavaScript Grid - afterUndo Event

afterUndo

pro version only

This functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package.

triggered after successfully undoing an action

Usage​
type ActionType = "add" | "remove" | "removeAll" | "change";

interface IAction {
type: ActionType;
batch: IRow[];
inverse?: IAction;
}

afterUndo: (action: IAction) => void;
Parameters:

The callback of the event is called with the following parameters:

action (object) the object of the executed action that contains the following properties:

Example

const grid = new dhx.Grid("grid_container", {
columns: [
{ id: "name", header: [{ text: "Name" }] },
{ id: "value", header: [{ text: "Value" }] },
],
data: [
{ id: "1", name: "Item 1", value: 10 },
],
history: true
});

grid.history.events.on("afterUndo", (action) => {
console.log("Action undone:", action.type);
});
Change log:

added in v9.2


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4