Opened 11 years ago

Closed 4 years ago

#6493 closed defect (patchwelcome)

Range support for Date and Timepicker

Reported by: nonken Owned by:
Priority: high Milestone: 1.11
Component: DojoX Form Version: 1.1.0
Keywords: DateTime, span Cc:
Blocked By: Blocking:

Description

Both time and date picker need a way to support validation of spans. So if I have two date pickers or two time pickers or two datetime pickers it would be handy to be able to define spans.

Attachments (1)

test_rangeValidate.html (7.2 KB) - added by Nathan Toone 10 years ago.
This is a test file which demonstrates functions that could be added to RangeBoundTextBox? in order to support "minWidget" and "maxWidget" constraints.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 11 years ago by bill

Component: DijitDojoX Form

I need to be strict about what goes into dijit since we (I) don't want it to become monolithic. Specifying start dates / end dates is an often used feature, like on airline sites, but the description is too vague to really judge if that's what you mean, so let's see what you come up with and then decide if it's appropriate for dijit or not. If not would be a dojox feature. I suspect this is about the "3.5 hours" sort of selection.

comment:2 Changed 11 years ago by nonken

Yes, I am refering to the timespan feature you find on most travel booking sites. In this case it most of the time only includes date spans and not datetimespans. A datetimespan would be for instance useful in a scheduling application when I set an event to start at a certain date and time until a different date and time. of course the data have to be validated on th eserverside but it might be a useful validation feature for the client side.

I agree that it is questionable whether this should be a dijit core featur. Initially I think it is something, most people who are using date and time picker, will need.

comment:3 Changed 11 years ago by nathan

Milestone: 1.21.3

comment:4 Changed 11 years ago by Nathan Toone

Owner: changed from nathan to Nathan Toone

comment:5 Changed 11 years ago by Nathan Toone

Milestone: 1.3future

Changed 10 years ago by Nathan Toone

Attachment: test_rangeValidate.html added

This is a test file which demonstrates functions that could be added to RangeBoundTextBox? in order to support "minWidget" and "maxWidget" constraints.

comment:6 Changed 9 years ago by Nathan Toone

Owner: Nathan Toone deleted

Unassigning my tickets.

comment:7 Changed 8 years ago by lsiu

This project makes an excellent example of a DateRangePicker?

http://stephencelis.github.com/timeframe/

Has there been any updates for this request?

comment:8 Changed 7 years ago by dylan

I believe this is supported with the widgets in dojox/widget?

comment:9 Changed 4 years ago by dylan

Milestone: future1.11
Resolution: patchwelcome
Status: newclosed

If there's interest in revisiting this beyond what is supported in DojoX, please re-open with a pull request per our contribution guidelines ( https://github.com/dojo/dojo/blob/master/CONTRIBUTING.md ).

Note: See TracTickets for help on using tickets.