Re: TextBox with pre-filled suggestion
Wow, thank you very much, I'll definitely give it a try!!!
On Wednesday, December 5, 2012 8:04:33 AM UTC+1, Igor Knyazev wrote:
You can use HTML 5 <input> "placeholder" attribute to achive that.--TextBox textBox = new TextBox(); textBox.getElement().setAttribute ("placeholder", "some text");check browser support of this attribute here http://www.w3schools.com/html5/att_input_placeholder. asp For rounded borders just add styleName to TextBox with border-radius property
On Wednesday, December 5, 2012 2:35:58 AM UTC+4, dcheeky77 wrote:Hello!
I need to use a TextBox to enter some data, but the label which explains the field's purpose must be of the kind inside the TextBox itself, which disappears when the user clicks on the field (I hope I've let you understand what I'm talking about ;) )
I'm using GWT 2.4: is there any such component or a common method to achieve the result?
Since I also need to customize the look of the TextBox (rounded corners), I was thinking of implementing my own TextBox, but should it extend Composite? Or is there some other way for "basic" components?
Thank you very much for your help!
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/B5wD-3TywSoJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home