Project

General

Profile

Actions

Feature #8759

open

Feature #7894: Add more HTML5 input types

Add a WDateTimeEdit

Added by Roel Standaert over 3 years ago. Updated 2 months ago.

Status:
Review
Priority:
Normal
Assignee:
Target version:
Start date:
07/01/2021
Due date:
% Done:

0%

Estimated time:

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.

Actions #1

Updated by Roel Standaert over 3 years ago

  • Description updated (diff)
Actions #2

Updated by Roel Standaert over 3 years ago

  • Status changed from New to InProgress
Actions #3

Updated by Roel Standaert almost 3 years ago

  • Assignee deleted (ruben kindt)
Actions #4

Updated by Roel Standaert almost 3 years ago

  • Target version changed from 4.7.0 to 4.8.0
Actions #5

Updated by Roel Standaert over 2 years ago

  • Target version changed from 4.8.0 to 4.9.0
Actions #6

Updated by Roel Standaert about 2 years ago

  • Target version changed from 4.9.0 to 4.10.0
Actions #7

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).

Actions #8

Updated by Matthias Van Ceulebroeck over 1 year ago

  • Target version changed from 4.10.0 to 4.11.0
Actions #9

Updated by Matthias Van Ceulebroeck over 1 year ago

  • Assignee set to Matthias Van Ceulebroeck
Actions #10

Updated by Matthias Van Ceulebroeck over 1 year ago

  • Status changed from InProgress to Review
  • Assignee deleted (Matthias Van Ceulebroeck)
Actions #11

Updated by Matthias Van Ceulebroeck about 1 year ago

  • Assignee set to Yoika Ghysens
Actions #12

Updated by Matthias Van Ceulebroeck 3 months ago

  • Target version changed from 4.11.0 to 4.11.1
Actions #13

Updated by Matthias Van Ceulebroeck 2 months ago

  • Target version changed from 4.11.1 to 4.12.0
Actions

Also available in: Atom PDF