on 04-05-2016 7:41 AM
is it possible to place html element or table as content into openUI5 accordion controls?
HI Geetha
It is possible. Do you encounter issues?
Thanks
-D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.