Skip to Content
avatar image
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 11, 2017 at 01:35 PM
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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