Feature #8759
openFeature #7894: Add more HTML5 input types
Add a WDateTimeEdit
0%
Description
It would be nice if we could bundle WDateEdit
and WTimeEdit
into one widget that uses WDateTime
.
Natively, we can use an <input type="datetime-local">
: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local
For the non-native implementation, we could base it on a WLineEdit
, just like WDateEdit
and WTimeEdit
, and popup something that allows changing both the date and time at the same time. We'll need some icon that expresses this. Font Awesome does not appear to include it, but there may be other similar royalty-free icons that we can use.
The WFormDelegate
for WDateTime
should be changed to use a WDateTimeEdit
instead of a WLineEdit
as well.
Updated by Roel Standaert over 3 years ago
- Status changed from New to InProgress
Updated by Roel Standaert almost 3 years ago
- Target version changed from 4.7.0 to 4.8.0
Updated by Roel Standaert over 2 years ago
- Target version changed from 4.8.0 to 4.9.0
Updated by Roel Standaert about 2 years ago
- Target version changed from 4.9.0 to 4.10.0
Updated by Mark Travis over 1 year ago
I just ran into a need for this. I have quite a few fields in the database defined as WDateEdit, which would be easy to modify with this functionality.
Instead, I create a WDateTime object, use calendar widget to set a date, setDate() in the WDateTime object, then pass the value of WDateTime to the database without regard to the time component.
It would be nice to simplify this process and get rid of the intermediate WDateTime object and get the value directly from the widget(s).
Updated by Matthias Van Ceulebroeck over 1 year ago
- Target version changed from 4.10.0 to 4.11.0
Updated by Matthias Van Ceulebroeck over 1 year ago
- Assignee set to Matthias Van Ceulebroeck
Updated by Matthias Van Ceulebroeck over 1 year ago
- Status changed from InProgress to Review
- Assignee deleted (
Matthias Van Ceulebroeck)
Updated by Matthias Van Ceulebroeck about 1 year ago
- Assignee set to Yoika Ghysens
Updated by Matthias Van Ceulebroeck 3 months ago
- Target version changed from 4.11.0 to 4.11.1
Updated by Matthias Van Ceulebroeck 2 months ago
- Target version changed from 4.11.1 to 4.12.0