You can add a delete icon to the Scheduler row headers using an active area.
onBeforeRowHeaderRender: (args) => {
args.row.areas = [
{
right: 3,
top: 3,
width: 16,
height: 16,
symbol: "../icons/daypilot.svg#x-4", // or another icon
onClick: (args) => {
dp.rows.remove(args.source);
}
}
];
},
If rowHeaderColumns are defined, you can add the icon to a specific column:
onBeforeRowHeaderRender: (args) => {
args.row.columns[0].areas = [
{
right: 3,
top: 3,
width: 16,
height: 16,
symbol: "../icons/daypilot.svg#x-4",
onClick: (args) => {
dp.rows.remove(args.source);
}
}
];
},