Reputation: 1320
I want to add placeholder to TextField similar to HTML5 placeholder property but I can't find the proper method for that. Is there any or the only way is to implement myself?
Upvotes: 2
Views: 2492
Reputation: 10271
It can be done using the setInputPrompt
method.
API link: https://vaadin.com/api/com/vaadin/ui/AbstractTextField.html#setInputPrompt%28java.lang.String%29
Upvotes: 2