Our pure JavaScript Scheduler component


Post by jingqi »

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.

Attachments
Snap17.jpg
Snap17.jpg (111.25 KiB) Viewed 216 times

Post by tasnim »

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


Post by jingqi »

Hello Tasnim

Just check this point internally, maybe the wrong understanding.
we need the same task style also when click the grid cell on left side(task2 in picture). just like the task when add the event in right timing line( task 1 in picture).
Is that possbile? Hope we can get my point.


Post by marcio »

Hey jingqi,

Just to confirm that we understand correctly, do you want to add a task like task 1 when you click a resource?? Or do you want to open an editor like task 1 when you click on a resource??

Best regards,
Márcio


Post by jingqi »

Dear Marcio

I want to open an editor like task 1 when i click on a resource, content is different with task1
the editor/content belong to source not to taks1. Just to use the frame style.


Post by alex.l »

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


Post Reply