dragPanelItemClick
pro version only
This functionality requires PRO version of the DHTMLX Grid (or DHTMLX Suite) package.
triggered when the drag panel item is clicked
Usage
dragPanelItemClick: (id: string, event: MouseEvent | TouchEvent) => void;
Parameters:
The callback of the event is called with the following parameters:
id
- the ID of the row associated with the drag panel itemevent
- a browser event:MouseEvent
orTouchEvent
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" },
{ id: "2", a: "A2", b: "B2" },
],
dragPanel: true
});
grid.events.on("dragPanelItemClick", (id, event) => {
console.log(`Drag panel clicked for row ID: ${id}`);
});
Related article: Work with DragPanel module
Change log:
added in v9.2