on 12-30-2012 11:26 AM
Hi All,
How can I put a placeholder for the TextField component in SAPUI5 ? HTML5 provides an property placeholder to make use of this functionality.
Any hints?
Regards,
Noufal
Hi Noufal,
unfortunately this HTML5 attribute is not supported in IE9 and IE8 which also need to be working with functional parity in SAPUI5.
A workaround could be built in, but this has not been done yet.
In the new SAPUI5 mobile control set, the sap.m.Input control does have a placeholder attribute (IE9 does not need to be supported there...).
If urgently required, you could inherit from TextField, add the "placeholder" attribute and in your renderer use the original renderer, but implement the "renderInnerAttributes" method and render the placeholder attribute there.
But remember to remove this again once the UI5 TextField officially gets this attribute.
Regards
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have put the solution in this blog
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.