cancel
Showing results for 
Search instead for 
Did you mean: 

openUI5 accordion controls

Former Member
0 Kudos

is it possible to place html element or table as content into openUI5 accordion controls?

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member182862
Active Contributor
0 Kudos

HI Geetha

It is possible. Do you encounter issues?

Thanks

-D

Former Member
0 Kudos

Hi,

yes,I'm getting the following error when I try to add html table as content into accordion section. I have tried to create everything (accordion, html table) dynamically using javascript.

Uncaught Error: "[object HTMLTableElement]" is not valid for aggregation "content" of Element sap.ui.commons.AccordionSection#__section0.

Thanks

former_member182862
Active Contributor
0 Kudos

HI Geetha

You need to put the table in a sap.ui.commons.AccordionSection. and have the section as content in accordion.

Thanks

-D

Former Member
0 Kudos

Hi

I got that error when I tried to add table into accordion section element (I had used section element) and I didn't try to add content directly to accordion control without section.

my code goes like this ..,

var oSection = new sap.ui.commons.AccordionSection(); // accordion section element

var mytable = document.createElement('table'); // table element dynamically create using javascript

oSection.addContent(mytable); // adding html table to accordion section element.

I'm getting error when I do the above code.

Thanks

former_member182862
Active Contributor
0 Kudos

hi

mytable has to be a sapui5 table control. Cannot be a html table.

Sorry we misunderstood your question

-D

Former Member
0 Kudos

Hi Dennis

Thanks a lot.

former_member185414
Active Contributor
0 Kudos

Hello,

Theoretically it should be possible as the content aggregation of sections aggreagtion of accordion control allows any control of type - sap.ui.core.Control.

BR.