A developer needs to create a new component called "Component A". Component A must show a list of other components that all have a resource type of existing
"Component B". Component A must render this list of tiles for each Component B where the tile rendering is different from the default one. The list of rendered tiles must be reusable by future new components.
How should the developer implement this functionality?
A. Create a script for tile rendering in Component B and use data-sly-resource attribute with a Sling selector in Component A to render the tile.
B. Component A overlays Component B and overwrites the base renderer to facilitate the tiles.
C. Component A inherits from Component B and overwrites the base renderer to facilitate the tiles.
D. Component A calls the HTL of Component B directly using a data-sly-include attribute.
A developer needs to create a new component called "Component A". Component A must show a list of other components that
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
A developer needs to create a new component called "Component A". Component A must show a list of other components that
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!