How can I create time slots?

0
Hi all, I've seen some similar questions but still haven't found a solution. I am building an electric car charging application and my customer would like to have instead of a date-time picker a time slot picker to improve the design, so for example in increments of 30 min or 1 hour. I have not found a widget for this purpose so any ideas would be very helpful, also any suggestions regarding this would be greatly appreciated.   
asked
2 answers
0

You could create a simple list of time slot objects (e.g., every 30 minutes) and let users pick from a dropdown.

These objects can be created as non-persistable objects when you load the page.

 

If you need a more interactive control, you can build or extend a pluggable widget to handle fixed increments.

answered
0

Hi Gal,

You can make enumeration for 30 mins difference like 10AM-10:30AM, 10:30AM-11:00AM according to your need & use dropdown value where select this enumeration as attribute.

 

Hope you like the ans

answered