Hello,
Is there any way to add a button to the lightbox in a dynamic way: depending on event data. I tried to use multiple buttons_left config. But this doesn’t work, the configuration is called juste once.
So I would like to do something like this:
scheduler.attachEvent(“onBeforeLightbox”, function (id){
ev = scheduler.getEvent(id);
//We handle the display of the submitWorkflow button
if(ev.conge && !ev.conge.processStep) {
scheduler.config.buttons_left=["dhx_save_btn","dhx_cancel_btn","submit_process_step_button"];
} else {
scheduler.config.buttons_left=["dhx_save_btn","dhx_cancel_btn"];
}
}
This doesn’t work as I said.
Thanks !