Skip to Content
0
Former Member
Mar 13, 2017 at 08:57 AM

Display String in a List-view with line break

833 Views

Is it possible to display a String with "\n" in the list-view ? In this case, I would like to have one line with the word "Hello" and another with the word "World".

I though that the list-view column should have some multiline = true option, but I could not find it.

For instance, suppose I have the following code:

 //Java Code
 String myContent = "Hello \n World";
 
 //List-view in myextension-backoffice-config.xml
 <context merge-by="type" parent="GenericItem" type="MyType" component="myCustomListViewForExtendedEditor">
         <list-view:list-view xmlns:list-view="http://www.hybris.com/cockpitng/component/listView">
             <list-view:column qualifier="myContent" label="myContent.label" />
         </list-view:list-view>
 </context>

Thanks for the help.