customization of light box

In Light box Header ,Time(00:00 - 00:05_) & event description is coming , by default .
but i need to display my own title dynamically . i used this code for static display of my title lightbox_render = false; scheduler.attachEvent("onBeforeLightbox", function(){ return lightbox_render = true; }); scheduler.templates.event_bar_text=function(start,end,ev){ if (lightbox_render){ lightbox_render = false; return "CMS"; } else return ev.text; }
suppose i am creating new event , the title should display ‘TITLE’ with out dhx_time.
if i am editing event it should display the event title on header .

if i am creating new event delete button should not be display .
and if i am editing the exiting event delete button should appear .

the title should display ‘TITLE’ with out dhx_time.

You can use scheduler.templates.event_header similar to already handled event_bar_text
event_header template is responsible for rendering time part of lightbox title.

if i am creating new event delete button should not be display .
There is no way to control buttons visibility at bottom of lightbox form.

if i am creating new event delete button should not be display .
There is no way to control buttons visibility at bottom of lightbox form.

But if you see when you use readonly.js only cancel button will appear .
my requirement is when the user creates a new Event Delete Button will not display .
that means i need to create a same new other light box without that delete button.

The readonly extension

  • attachs handler to onLightbox event ( scheduler 2.3, more complex coding in older versions )
  • access lightbox container by using scheduler._get_lightbox();
  • locates related div container in the lightbox and hides it

There is no simple API to hide the button, it do it directly through DOM