cancel
Showing results for 
Search instead for 
Did you mean: 

What is the Use of Wrapping property for Label UI element

Former Member
0 Kudos

hai all,

please let me provide the solution with example.

regards

Viswa.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

thank you harish

Former Member
0 Kudos

thank u naga

Answers (3)

Answers (3)

Former Member
0 Kudos

yes

Former Member
0 Kudos

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

Former Member
0 Kudos

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