A developer needs to create a new component called "Component A". Component A must show a list of other components that

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post by answerhappygod »

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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!

This topic has 1 reply

You must be a registered member and logged in to view the replies in this topic.


Register Login
 
Post Reply