cancel
Showing results for 
Search instead for 
Did you mean: 

CustomControl SAPUI5

0 Kudos

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&

boghyon
Product and Topic Expert
Product and Topic Expert
0 Kudos

What is the purpose of creating these custom controls? For exercises? Or are you looking for list items that can be displayed in a grid view?

0 Kudos

boghyon.hoffmann I'm looking for understanding how to create custom control with feed list items and create it. This example is the only I've found about list items

Accepted Solutions (1)

Accepted Solutions (1)

WouterLemaire
Active Contributor

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

0 Kudos

I try to do so, but it doesn't help. Can you help and write how to do it, please? I think I do not understand something

0 Kudos

thanks, I've done!

Answers (0)