Integrating 3 core components in a single core component | Community
Skip to main content
akashkriz005
Level 2
March 28, 2023
Solved

Integrating 3 core components in a single core component

  • March 28, 2023
  • 1 reply
  • 452 views

Hello Everyone ! 

There is use case for creating a header component for the application. Planning to move with the navigation component and customising it. How can we include core image component , core search component within navigation component and provide dialog feature within the navigation component ?

 

How to integrate these dialogues and how to maintain the image component , search component functionalities within navigation ?  

 

Please advice !

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Rohit_Utreja

@akashkriz005 

You can create a custom component and include all these core component directly into your custom component.

if you want to overwrite some properties of these core component based on your use-case, create a proxy in your project and use sling resource merger concept.

to include core component in your custom component, use data-sly-resource.

 

I hope it helps.

1 reply

Rohit_Utreja
Community Advisor
Rohit_UtrejaCommunity AdvisorAccepted solution
Community Advisor
March 28, 2023

@akashkriz005 

You can create a custom component and include all these core component directly into your custom component.

if you want to overwrite some properties of these core component based on your use-case, create a proxy in your project and use sling resource merger concept.

to include core component in your custom component, use data-sly-resource.

 

I hope it helps.