Opened 16 years ago
Closed 15 years ago
#1854 closed enhancement (wontfix)
Dynamically updating DatePicker
Reported by: | guest | Owned by: | bill |
---|---|---|---|
Priority: | low | Milestone: | 0.9 |
Component: | Widgets | Version: | 0.4 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Can we add these methods (or similiar)
setStartDate: function(/*Date|String*/dateObj) {
if (typeof dateObj=="string") {
this.startDate = dojo.date.fromRfc3339(dateObj);
} else {
this.startDate = dateObj;
} this.startDate.setHours(0,0,0,0); adjust startDate to be exactly midnight
},
setEndDate: function(/*Date|String*/dateObj) {
if (typeof dateObj=="string") {
this.endDate = dojo.date.fromRfc3339(dateObj);
} else {
this.endDate = dateObj;
} this.endDate.setHours(24,0,0,-1); adjusting endDate to be a fraction of a second before midnight
},
Change History (3)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
Milestone: | → 0.5 |
---|---|
Type: | defect → enhancement |
comment:3 Changed 15 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Is there a reason that you need to change these values dynamically, rather than setting them when you instantiate the widget?
What if the current value of the widget is Oct 31, 2006, but then you set the end date to Sept 30, 2006?