Project

General

Profile

DateEdit & TimeEdit - InputType Usability

Added by Christian Meyer over 4 years ago

Hi there!

I am working on a Calendar like app and am very focused on mobile use.

If I use either TimeEdit or DateEdit Widgets, the input type is set to "text" instead of "time" or "date".

Question is: Why use text as standard type, when time and date generate a way better input interface on mobile?

It also gives way to easily change predefined Values within the edit field without having to follow a self defined format.

A DatePicker is also represented.

I can just set the type with setAttributeValue("type", "time"); but I feel there should be a different standard.

Do you think that too, or why not?

Maybe a solution would be if there's a way to pass a Flag to use Native HTML5 with corresponding validators?

The input can also be restricted by min & max Attributes

I would love to be able to just get the date out of Wt::WDateEdit but with the Native input controls =)

Thank you for your time!

Good Luck in your Projects!

Chris


Replies (3)

RE: DateEdit & TimeEdit - InputType Usability - Added by Roel Standaert over 4 years ago

I think this is mainly due to a lack of browser support at the time and a focus on desktop use in the earlier days of Wt development. You could maybe submit this as a feature request?

RE: DateEdit & TimeEdit - InputType Usability - Added by marco di antonio over 3 years ago

Hi, we still haven't started to use WT, however I was digging into documentation and reading the boards and ended on this topic. I confirm this would be an important feature for us as we develop crm in php and mobile usage is quite often for our customers. Having Date and Time html5 native on mobile is quite important the day we ever decide to start working with wt++.

Thanks!

    (1-3/3)