#8288 closed enhancement (duplicate)
Add "inline labels" to dijits with textbox representations
Reported by: | david | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | Dijit - Form | Version: | 1.2.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
It'd be wonderful to be able to have a textbox have a label that appears within the input so long as 1) the box isn't in focus and 2) is empty. For example, say I want you to input a date in 3 text boxes. I could have this:
Date of Birth: Month: [_] Day: [_] Year: []
But that's not nearly as nice as this:
Date of Birth: [_Month] [_Day_], [_Year_]
(Yes, I realize you can use a date picker dijit here, but this is just an example.)
Change History (5)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Suggestion: name the property hint
, e.g.:
<input type="text" dojoType="dijit.form.TextBox" name="search" hint="Search this site">
comment:5 Changed 10 years ago by
Component: | Dijit → Dijit - Form |
---|
Note: See
TracTickets for help on using
tickets.
"Enter Search Term" is a common one for this kind of functionality.