Our pure JavaScript Scheduler component
Hi,
where may I find the 'onclick' event for the names in the the resource column?
Currently on single click a blue frame appears, and on double click i can change the name. But I would like to open e.g. the calendar view of that resource, on single click.
Many thanks for your help.
Scheduler v.4
Hi hergen,
Here is events you are looking for:
https://bryntum.com/docs/scheduler/api/Grid/view/mixin/GridElementEvents#event-cellClick
https://bryntum.com/docs/scheduler/api/Grid/view/mixin/GridElementEvents#event-cellDblClick
To disable cell editing, you need to turn off that feature.
https://bryntum.com/docs/scheduler/api/Grid/feature/CellEdit
Or you can also change an action to start editing https://bryntum.com/docs/scheduler/api/Grid/feature/CellEdit#config-triggerEvent
const scheduler = new Scheduler({
appendTo : 'container',
resources : resources,
events : events,
startDate : new Date(2017, 0, 1, 6),
endDate : new Date(2017, 0, 1, 20),
viewPreset : 'hourAndDay',
rowHeight : 50,
barMargin : 5,
multiEventSelect : true,
columns : [
{ text : 'Name', field : 'name', width : 130 }
],
features : {
cellEdit : false
},
listeners : {
cellClick({ record }) {
console.log(record.name, 'clicked');
}
}
});