afterAction
Description
Fires after an action is executed
Usage
afterAction: (action: string, config: object) => void;
Parameters
The callback of the event takes the following parameters:
action
- (required) the name of the action. Check the full list of available actions hereconfig
- (required) an object with parameters of the action
Example
const spreadsheet = new dhx.Spreadsheet("spreadsheet", {
// config parameters
});
spreadsheet.parse(dataset);
spreadsheet.events.on("afterAction", (actionName, config) => {
if (actionName === "sortCells") {
console.log(actionName, config);
}
});
Changelog: Added in v4.3
Related articles: