Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#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 11 years ago by dante

"Enter Search Term" is a common one for this kind of functionality.

comment:2 Changed 11 years ago by david

Suggestion: name the property hint, e.g.:

<input type="text" dojoType="dijit.form.TextBox" name="search" hint="Search this site">

comment:3 Changed 11 years ago by Adam Peller

related to #3286?

comment:4 Changed 11 years ago by bill

Resolution: duplicate
Status: newclosed

Yup, same as #3286.

comment:5 Changed 9 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.