Opened 14 years ago
Closed 13 years ago
#7987 closed enhancement (fixed)
Calendar: support month drop-down
Reported by: | David Schwartz | Owned by: | Adam Peller |
---|---|---|---|
Priority: | high | Milestone: | 1.4 |
Component: | Dijit | Version: | 1.2.0 |
Keywords: | ibm date distant-values | Cc: | Josh Trutwin |
Blocked By: | Blocking: |
Description (last modified by )
The nature of the target date will vary with task. The current Calendar supports the selection of proximate months and years. Some tasks involve the selection of distant months and years. Completing these types of tasks with the current widget would be very cumbersome.
Provide the option to include distant month (1) and year (2) controls.
Selecting the distant month control would result in the display of a list of all twelve months like in the following image.
Selecting the distant year control would result in the display of an optionally scrollable list of years.
Attachments (5)
Change History (33)
Changed 14 years ago by
Attachment: | date-non-proximal-selection.gif added |
---|
Changed 14 years ago by
Attachment: | notes-distant-month-selector.gif added |
---|
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Component: | Dijit - LnF → DojoX Form |
---|---|
Milestone: | tbd → future |
Owner: | set to dante |
Type: | defect → task |
I'd like to see the implemented somewhere too, as it something I commonly see on sites. But marking as "future" until we get a volunteer to implement it.
Note that there is a calendar class that does some of this in http://download.dojotoolkit.org/release-1.2.1/dojo-release-1.2.1/dojox/widget/tests/test_Calendar.html although it's a rather unorthodox UI.
As for location though this should probably go into DojoX Form.
comment:3 Changed 14 years ago by
Owner: | changed from dante to Nathan Toone |
---|
nathan toone is the master of all that is dojox.form
comment:4 Changed 13 years ago by
ideally, this should be a mixin on dijit._Calendar provided in DojoX.
comment:5 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
This functionality is now provided by dojox.widget.Calendar (and as a textbox in dojox.form.DateTextBox?)
comment:6 Changed 13 years ago by
Milestone: | future → 1.4 |
---|
comment:7 Changed 13 years ago by
Component: | DojoX Form → Dijit |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
comment:8 Changed 13 years ago by
Owner: | changed from Nathan Toone to Adam Peller |
---|---|
Status: | reopened → new |
Add month dropdown to dijit._Calendar
year should really be a separate ticket. See also #6570.
comment:10 Changed 13 years ago by
Type: | task → enhancement |
---|
comment:11 Changed 13 years ago by
comment:14 Changed 13 years ago by
comment:15 Changed 13 years ago by
comment:17 Changed 13 years ago by
comment:18 Changed 13 years ago by
comment:20 Changed 13 years ago by
Cc: | Josh Trutwin added |
---|
comment:22 Changed 13 years ago by
Description: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Summary: | DateTextBox: Support Selection of Distant Months/Years → Calendar: Support Selection of Distant Months |
Two issues here. Distant year selection logged as separate ticket: #10002
comment:23 Changed 13 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I've got a usability concern re this design. As currently designed, it's likely that part of the list will be clipped (see the attached video). This problem is exacerbated by the list not extending beyond the client area of the page (see the 2nd video that illustrates native controls doing just that). I think it would be better to present the full list below the current value rather than making the current value part of the list. In this way, the month list wouldn't extend much beyond the datetextbox itself (if at all).
Changed 13 years ago by
Attachment: | datetextbox.selecting.distant.gif added |
---|
Illustrates the month list getting clipped by the client area border
comment:24 Changed 13 years ago by
This is a known limitation of the current design. I don't like the alternative, since clicking would instantly change the selection. You could still end up with clipping problems, just not as much getting clipped.
comment:25 Changed 13 years ago by
I see, you could put it below so that a click+release would have no action, but I don't like the look of that and you still have a clipping problem, just at the bottom
comment:26 Changed 13 years ago by
There shouldn't be any clipping problem if implemented as a standard dijit drop down (using dijit.popup()), as the list will appear either below or above depending on where there is space.
See for example how the http://download.dojotoolkit.org/release-1.3.2/dojo-release-1.3.2/dojox/form/tests/test_DropDownSelect.html Select widget works if you make your browser window small enough.
comment:28 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Summary: | Calendar: Support Selection of Distant Months → Calendar: support month drop-down |
I split off the positioning problem into #10091 so we can close this ticket.
see also #6297