Expand my Community achievements bar.

SOLVED

AEMasCloud

Avatar

Level 7

Hi team,

 

I am trying to get into cloud implementations through core component where I checked button component as per initiative. Is there a way I can check the code base of com.adobe.cq.wcm.core.components.models.button implementation class. Only interface is available on adobe github.

 

Thanks!   

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
5 Replies

Avatar

Correct answer by
Community Advisor

Avatar

Level 7

Hi @arunpatidar 

Is there any core component that has been developed through sling model exporter in cloud sdk that I can refer ?

Avatar

Level 7

Hi @arunpatidar 

 

But still from libs/core/wcm/components/button/v2/button/button.html , data has been fetched like below.

<button data-sly.use.button="com.adobe.cq.wcm.core.components.models.Button"/>

${button.text}

</button>

 

really appreciate if you can explain an example how model class data can be fetched from react component using api endpoint of the model class exporter.

Avatar

Community Advisor

So com.adobe.cq.wcm.core.components.models.Button is an interface but the implementation is at https://github.com/adobe/aem-core-wcm-components/blob/6a102d1d5879d142123a547c00e2d226e475a636/bundl... 

 



Arun Patidar