Changes between Initial Version and Version 10 of Ticket #10822


Ignore:
Timestamp:
May 14, 2010, 8:10:34 AM (10 years ago)
Author:
bill
Comment:

Why not make the default value of defaultValue be new Date(), rather than new Date("")? That seems like the whole point of this ticket, that the Calendar opens to a specified (valid, non-null) date when the DateTextBox has no value.

There's a minor issue that the Calendar shouldn't show any day as pre-selected, but rather show all the days unhighlighted until the user clicks one. So really we just want to specify defaultValue="2010-06" or something like that. But that's an issue with the current DateTextBox too, regardless of this patch: that it defaults to opening with today pre-selected.

Also, I wish there was a less confusing name than "defaultValue".

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10822

    • Property Cc Douglas Hays added
    • Property Owner set to Douglas Hays
    • Property Milestone changed from 1.4.2 to tbd
  • Ticket #10822 – Description

    initial v10  
    1 If there is no value in the field, a DateTimeTextBox UI defaults to the current date/time. This allows you to set a default value for the UI to present.
     1If there is no value in the field, a !DateTimeTextBox UI defaults to the current date/time. This allows you to set a default value for the UI to present.
    22
    33Attached is a patch file with both code and test.