Render list of tiles from one component to another component. | Community
Skip to main content
kaushik-Datta
Level 2
Jun 6, 2020 4:07 PM UTC
Solved

Render list of tiles from one component to another component.

Recently encountered with below question. please let me know what can be done.

Developer needs to create a new component called component 'X'. Component 'X' must show a list of all components that all have a resource type of existing Component 'Y'. Component 'X' must render this list of tiles for each Component 'Y' where tile rendering is different from default one. The list of rendered tiles must be reusable by future new components. How should the developer implement this functionality ?

Thanks in advance !

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Jun 7, 2020 11:18 AM UTC

Create a new component called component 'X' with dialog to configure page rootpath/path, max number of results, list type.

for reference check we-retail list component.

Arun Patidar

2 replies

Level 6
Jun 7, 2020 1:45 PM UTC

The component X should render the component Y using data-sly-resource and pass selector for  rendering is different tile. 

See the Core carousel / Tabs component.

 

@arunpatidar the list component does not have the above functionality(allow another component ) as described.   

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Jun 7, 2020 11:18 AM UTC

Create a new component called component 'X' with dialog to configure page rootpath/path, max number of results, list type.

for reference check we-retail list component.

Translate
Arun Patidar