Showcover

Hi,

I am using custom form for lightbox. When I open the lightbox I need the background to be disabled and only the lightbox to be active.
I tried to use the showcover method like this -

gantt.showLightbox = function(id) {
gantt.showCover();
if (task.progress != 1) {
showAndPopulateCustomLightbox(id); //shows the lightbox
}
};

This disabled my background as well as the lightbox. I need the lightbox not to be disabled.
Could you pls. help.

Thanks

Hello,

Please, try to realise it by using onLightbox event:

gantt.attachEvent("onLightbox", function (task_id){
    gantt.showCover();
});

Thanks I tried that but see the same issue…the lightbox gets disabled along with the grid.
Would be nice if you could post a working example for same.

Hi,
the default modal cover has z-index:10000, you need to set z-index of your lightbox to 10001 in order to display it above the cover