Page 1 of 1

Placeholder Text

Posted: Mon Jan 07, 2013 5:59 pm
by djrikki
Hello,

Does MUI/Royale support placeholder text for string fields?

Re: Placeholder Text

Posted: Mon Jan 07, 2013 9:35 pm
by Mazze
Do you mean that the String object already has some content when it's shown? See "String.Contents" in MUIRoyale documentation.

Re: Placeholder Text

Posted: Mon Jan 07, 2013 11:03 pm
by djrikki
Like this:

http://davidwalsh.name/demo/html5-placeholder.php

When the text 'contents' are empty it shows 'Your first name...'

Re: Placeholder Text

Posted: Tue Jan 08, 2013 8:27 pm
by Mazze
Hmm. Showing some text isn't a problem, but that text should disappear when someone enters text. I guess that requires a custom MUI class with own event handler. The MUI way of showing some hints to the user is to add "bubble help" with Area.ShortHelp