| sidebar_label | afterAction |
|---|---|
| title | afterAction event |
| description | You can learn about the afterAction event in the documentation of the DHTMLX JavaScript Spreadsheet library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Spreadsheet. |
@short: Fires after an action is executed
afterAction: (action: string, config: object) => void;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
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: