on 03-09-2017 7:08 PM
Hi all,
I am working on creating a custom control. The control accepts an aggregation called "documents" with cardinality 0..n.
var TagTab = Control.extend("sap.ui.demo.DocTab", { metadata: { library: "sap.m", properties: { expandable : {type : "boolean", group : "Misc", defaultValue : true}, expanded : {type : "boolean", group : "Misc", defaultValue : true} }, defaultAggregation: "documents", aggregations: { documents: {type: "sap.m.IconTabFilter", multiple: true, singularName: "item"} } } });
Now I am using this control in XML view like this:
<DocTab items="{/docs}">
<m:IconTabFilter text="{docName}" ></m:IconTabFilter>
</DocTab>
But nothing gets rendered on the screen. I tried checking the binding in render function of the control using : console.log(oControl.getDocuments()) but this returns null.
What else do we need to implement in order to get the multiple aggregation working ? Currently I don't have anything apart from control metadata and render fucntion.
Thanks
Shruti
have you tested the UI control with hardcoded data?, if not then test that once...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.