Anyway to customize the date/time picker in lightbox?


#1

Is it possible to only have a date picker (not time) in the lightbox?


#2

Hi,

Yes. You can find more details on the page: https://docs.dhtmlx.com/scheduler/minicalendar.html#minicalendarinthelightbox
Example that demonstrates how it works:
https://docs.dhtmlx.com/scheduler/samples/05_calendar/03_in_form.html


#3

oh thanks! didn’t see that.

So if we’re just doing full day events (it’s a vacation planner) can we just pick start/end dates (no time picker)?


#4

Yes, you can hide select with time by CSS. In this case time will be set as 00:00.

Also check the info about full_day configuration:
https://docs.dhtmlx.com/scheduler/api__scheduler_full_day_config.html


#5

Yea, I saw that. I am using it, and I get a “Full Day” checkbox in the lightbox, but it also shows time still.

I wonder if some of the other config settings we are doing might be interfering with it?
we also set things like (some of these were to get all day behaviors):
multi_day
event_duration
auto_end_date

and we use onBeforeLightbox to force the start/end time


#6

I am actually cleaning up some some of the above (removed all of those mentioned). But I am still getting the time portion along with the “Full Day” check box.


#7

If you have another behaviour in your app as in the sample
https://docs.dhtmlx.com/scheduler/samples/02_customization/12_full_day_event.html
it means that you did something that redefined it. I can’t answer you what it is while I don’t see your code. Please reproduce the issue using dhtmlx snippet system http://snippet.dhtmlx.com/e9ca9b05a and send me the updated link. It will help me to understand the cause of the issue.


#8

That sample also has a time picker?
image


#9

If you mean minicalendar by “time picker”, it can be added if you need. How to do it is described in the article in one of my previous reply.


#10

No, sorry. I mean the time picker… The “16:00” and “18:00”. That’s what I mean…

Sorry for the confusion.


#11

Then yes, the sample also has a time picker as you can see. http://prntscr.com/ln6ey2
Sorry, I don’t understand your question, because you ask and at the same time answer yourself with an attached screenshot :worried:
Do you want to hide these fields with time? Or smth else? Please clarify in details what is your issue and what you want to implement. Otherwise I can’t help you because I do not inderstand your requirements.