Placeholder textfield

Can you please tell me how can I specify a “placeholder” in the textfield? I did not find an implementation of this method in api

Sorry for the delay – could you explain what you mean by this? You mean just some dummy text?

var textField = new TextField();
textField.text = "dummy text";

Not. There should appear a translucent text in the input field, and when you click on the area it disappears and enter the usual text.

This is not a standard feature but it should be possible to do this using FocusEvent.FOCUS_IN and FocusEvent.FOCUS_OUT

1 Like