copyError
pro version only
This functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package.
fires when an error occurs during copying or cutting (e.g., clipboard access is blocked)
Usage
copyError: (error: string) => void;
Parameters:
The callback of the event is called with the following parameters:
error
- an error message
Example
const grid = new dhx.Grid("grid_container", {
columns: [
{ id: "a", header: [{ text: "A" }] },
{ id: "b", header: [{ text: "B" }] },
],
data: [
{ id: "1", a: "A1", b: "B1" },
],
clipboard: true
});
grid.clipboard.events.on("copyError", (error) => {
console.log("Copy error:", error);
});
Related API: pasteError
Related article: Work with Clipboard module
Change log:
added in v9.2