Make time period display first in creating event and read only inside the lightbox

Hi all,

As the title says is it possible?

scheduler.config.lightbox.sections = [
{ name:“time”, height:72, type:“time”, map_to:“auto”},
{ name:“description”, height:50, map_to:“description”, type:“textarea”}
];

Can I also change the display name Time period to Event time/When Time?

Great component by the way.

Hi,

Sorry, I don’t fully understand what means

Make time period displays first in creating event

If you want to set dates for the new created event before opening the lightbox, you can set dates in the onBeforeLightbox handler.
Check there if it is new event by getState method.
scheduler.getState().new_event

To make the event readonly in the lightbox - update the value of ‘readonly’ property in the events object as it described here. To implement it, add select or checkbox control to the lightbox.

Yes, update label by changing the locale object

scheduler.locale.labels.section_time = "Event time";

Sorry, what I mean is I want to change the position of time period to be displayed first


after the description is it possible? does it not break anything? I’ve seen your demos and all those samples is the same displaying time period at the bottom.

Yes, it is possible: https://snippet.dhtmlx.com/8dc7b39d8
Why did not you check it before asking a question? :slight_smile:

Sorry I’m having a difficult time finding samples that I need.

You don’t need to find them, just add code and check how it works.

1 Like