Page 1 of 1

Additional Selector Types - Time & Color

PostPosted: Sat Apr 06, 2024 3:04 am
by john1598360627
When working on the Fullcalendar2, I realized there could be some more useful selector elements that would be a great help for user experience.


TIME
Similar to the calendar element which lets you select a date, having an element let you specific time of day via a clock would be nice.

This would work great with the Fullcalendar2, deciding on a specific time for an event's start & end date.

COLOR
A visual color selector that the user can get a specific hexadecimal value.

Fullcalendar2 event's can have different background colors. So having the user have a way of changing it themselves would be good.


THOUGHTS?
If these are already possible somehow within Servoy let me know!

Re: Additional Selector Types - Time & Color

PostPosted: Sun Apr 07, 2024 1:21 pm
by mboegem
Hi John,

All of this is already available.

For time picker you have 2 easy choices:
1) Use a textbox component, set the input type to 'time' and attach a date type dataprovider.
2) You already used the calendar component to select the date, if you change the input format to 'HH:mm' (24-hour clock), it will popup with just the time picker.

To achieve a color picker it is similar to option 1 of the timepicker.
This time set the input type to 'color' and attach a string type dataprovider.

Hope this helps.

Re: Additional Selector Types - Time & Color

PostPosted: Tue Apr 09, 2024 12:02 am
by john1598360627
mboegem wrote:Hi John,

All of this is already available.

For time picker you have 2 easy choices:
1) Use a textbox component, set the input type to 'time' and attach a date type dataprovider.
2) You already used the calendar component to select the date, if you change the input format to 'HH:mm' (24-hour clock), it will popup with just the time picker.

To achieve a color picker it is similar to option 1 of the timepicker.
This time set the input type to 'color' and attach a string type dataprovider.

Hope this helps.

Oh wow, I did NOT realize this was available, thank you!


.... by the way, is there a list somewhere of all possible Input Types? I have checked the wiki but don't see a place referencing these but I must be missing where it says them all!