Extending responsiveGrid in AEM SPA with custom model | Community
Skip to main content
Level 2
October 7, 2020
Solved

Extending responsiveGrid in AEM SPA with custom model

  • October 7, 2020
  • 1 reply
  • 1317 views

Hi,

 

I am trying to expand the responsiveGrid, similar to this guide here https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/extending-responsivegrid-using-react-in-aem-spa-architecture-aem/m-p/376863#M27128.

 

The problem I am having is I am trying to use my own model to add a custom property to the component, but the resourceSuperType (sling:resourceSuperType="wcm/foundation/components/responsivegrid") seems to override it.

 

Is there a way I can extend this super type?

 

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 Nikhil-Kumar

@marcuss38348279  - 
Once you create your own responsiveGrid component using the mentioned steps.
What are the next steps you are expecting ? Can you provide more information ?

1 reply

Nikhil-Kumar
Community Advisor
Nikhil-KumarCommunity AdvisorAccepted solution
Community Advisor
October 8, 2020

@marcuss38348279  - 
Once you create your own responsiveGrid component using the mentioned steps.
What are the next steps you are expecting ? Can you provide more information ?

Level 2
October 8, 2020

Hi @nikhil-kumar,

 

I followed your guide to creating the React component and it works well.

 

The issue is when I try to create my own Sling Model to extend it. My model is never ran, I below for some reason the I believe wcm/foundation/components/responsivegrid is not playing nice with my model so I cannot add my own custom properties to it.

 

I hope that makes more sense?