Skip to Content

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 a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.