on 04-15-2009 7:15 AM
hai all,
please let me provide the solution with example.
regards
Viswa.
Hello power star,
the wrapping property of label is sam like the notepad Menu option "word wrap".
when your text exceeds the width of the page it automtically adjust to the next line, avoids horizontal scrolling.
Regards,
Naga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Viswa,
For the 'text' property of UI Element, you can provide a fixed value or bind it to context attribute of type String.
If you provide some fixed value for the text, you can set the width property accordingly.
The 'wrapping' property makes more sense when you have binded the 'text' property to some context attribute & you do not know the length of the text beforehand (text value may be coming from backend).
There you can provide value for 'width' property & set 'wrapping' = true, so that fixed text length is visible.
I think another use case scenario can be if you wish to resize the application window, you can adjust the space taken by the label using width & wrapping properties (resizing window does not have an impact)
Hope this clarifies your doubt.
Kind Regards,
Nitin
Edited by: Nitin Jain on Apr 15, 2009 12:14 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
wrapping. Indicates whether or not the text is wrapped. If the value is false, the text is not wrapped.
A boolean value. If set to "true" the text is word wrapped at the set 'width' or - if no 'width' is set - at the form width.
Jithin
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 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.