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/clipboard/pasteerror_event/ below:

Website Navigation


JavaScript Grid - pasteError Event

pasteError

pro version only

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

fires when an error occurs during pasting (e.g., clipboard is empty or data is invalid)

Usage​
pasteError: (error: string) => void;
Parameters:

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

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("pasteError", (error) => {
console.log("Paste error:", error);
});
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