#3286 closed enhancement (fixed)
Need UI to provide hints for input formats
Reported by: | Adam Peller | Owned by: | liucougar |
---|---|---|---|
Priority: | high | Milestone: | 1.5 |
Component: | Dijit | Version: | 1.0 |
Keywords: | Cc: | Douglas Hays | |
Blocked By: | Blocking: |
Description (last modified by )
You're presented with an input for a date or a currency (e.g. DateTextbox?, CurrencyTextbox?). How do you know what to enter? It depends on your locale, and other constraints. For dates, you might be asked for a 'short' date or a 'long' date, and that depends on your locale, as does the prompt itself. Sooo....
the patterns to handle this include:
inline text to prompt the user, e.g. Please enter an amount such as $1,234.56 or greyed out text in the widget, like Jesse's dojo.behavior or perhaps a prompt in some other form, like a tooltip.
Which patterns do we want to support? Do we provide them as examples or code in dijit.*? Can we generate them as simple examples using something like Declaration.js?
Attachments (2)
Change History (20)
comment:1 Changed 13 years ago by
Milestone: | 1.0 → 2.0 |
---|
comment:2 Changed 13 years ago by
Milestone: | 2.0 → 1.3 |
---|
comment:3 Changed 12 years ago by
Description: | modified (diff) |
---|---|
Milestone: | 1.3 → 1.4 |
comment:4 Changed 12 years ago by
Milestone: | 1.4 → 1.5 |
---|
bumping 1.4 tickets to 1.5, and most 1.3 tickets to 1.4
comment:5 Changed 12 years ago by
Milestone: | 1.5 → future |
---|
comment:6 Changed 11 years ago by
Milestone: | future → 1.5 |
---|---|
Owner: | changed from Adam Peller to liucougar |
comment:7 Changed 11 years ago by
Cc: | Douglas Hays added; bill removed |
---|
Changed 11 years ago by
Attachment: | 3286.2.patch added |
---|
another approach: overlay a span on top of the input
comment:8 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:9 Changed 11 years ago by
comment:10 Changed 11 years ago by
comment:11 Changed 11 years ago by
comment:12 Changed 11 years ago by
comment:13 Changed 11 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
The hint text isn't showing up in IE6 until the field is focused and then blurred.
comment:14 Changed 11 years ago by
Yah, it's not visible:
> dojo.position(dojo.query(".dijitPlaceHolder")[0]) {x:-2 y:-2 } > dojo.marginBox(dojo.query(".dijitPlaceHolder")[0]) {l:0 t:0 }
Borrowing from _layoutHackIE7(), this makes it appear (as tested in the console from test_validate.html):
dojo.query(".dijitPlaceHolder")[0].style.filter = "1234"
comment:15 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
comment:16 Changed 11 years ago by
comment:17 Changed 11 years ago by
(In [22043]) Changes for easier testing of themes:
- change ComboBox? --> FilteringSelect, to be able to test display of validation icon
- added a few placeHolders (hint strings), specifically to DateTextBox and FilteringSelect
- add dialog with action bar (only currently working for Claro)
- add dialog with loading animation (that happens every time the dialog is opened)
- added "Dialogs" MenuBar item to make it easier to display Dialogs
Milestone 2.0 deleted