Skip to Content

CustomControl SAPUI5

I've found this code on Github. We have Custom List Item control here. Also, we have 2 js-files and 1 xml. In xml we have 5 tags

<cust:CustomList items="{/grid}"> <cust:items> <cust:CustomListItem href1="{hyperlink}" src1="{image}"/> </cust:items> </cust:CustomList>

So, I need to rewrite these 2 js-files in one file, and instead of 5 tags in xml I need to make just one tag like this <cust:CustomList items="{/grid}" href1="{hyperlink}" src1="{image}"/>. Can you help me&

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on May 08 at 05:57 PM

    Hi, Use a property of the type object instead of the aggregation. This will allow you to bind a full JavaScript object that can contain properties and arrays which then can be used in your control.

    Hope this helps.

    Kr, Wouter

    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.