cancel
Showing results for 
Search instead for 
Did you mean: 

How do I add custom sap.ui.core.html in a table cell of a xml view?

0 Kudos

Hi,

I want to add a custom div like this inside a cell of a table in sapui5 table (i am using xml views)

However when i try to add html under <cells> it fails , i am guessing the aggregation of cells does not allow. The namespace for html in my view is also present

xmlns:html="http://www.w3.org/1999/xhtml"
<items>   
  <ColumnListItem counter="0" id="item1">     
     <cells>        
       <html:div>a</html:div>     
     </cells> 
 </ColumnListItem> 
</items>
This throws an error : Neither view name/content nor an XML node is given

Could you please let me know how to achieve this.

Accepted Solutions (0)

Answers (1)

Answers (1)

SergioG_TX
Active Contributor
0 Kudos
0 Kudos

Hi Sergio,

It works when i render it directly inside <content> tag with the correct namespace but it fails inside a cells tag of a table with the error. So wanted to know how specifically use it inside a cells tag