Dear Bryntum Team
Could i implemet 2 task template in scheduler pro.
1st task is fot the event in timing zone.
2st task is for the resource information (grid in left)
Just like the picture i attached.
Thanks.
Hi,
You can subscribe on cellClick
and you can show whatever you want
Please check the docs here https://bryntum.com/docs/scheduler/api/Grid/view/Grid#event-cellClick
listeners : {
cellClick() {
// write your logic here
}
}
Good Luck ,
Tasnim
Hi jingqi,
There is some misunderstanding because of wording we use.
So, you want to see a popup window with some fields to edit resource information when you clicked on a row.
And you want to have styling as our internal TaskEditor have.
Both events https://bryntum.com/docs/scheduler/api/Scheduler/view/Scheduler#event-cellClick and https://bryntum.com/docs/scheduler/api/Scheduler/view/Scheduler#event-cellDblClick
have record
in params. That will be a https://bryntum.com/docs/scheduler/api/Scheduler/model/ResourceModel instance that you actually need.
To implement that dialog you need to use https://bryntum.com/docs/scheduler/api/Core/widget/Panel with fields and buttons you want. All will be same styled. You cannot use EvenEditor as a base for resource editing, it makes no sense because you'll need to override all the code.
All docs for fields and buttons are available here https://bryntum.com/docs/scheduler
By default we use CellEdit feature to edit resource information. Cell editor appears on double click in a cell.
All the best,
Alex