How to pass parameters to Sling Modal from Sightly Component

Eakambaram

08-06-2017

Hi ,

I am trying to pass some custom parameters from my Sightly Component to Sling Model. But I am not able to read those passed parameters inside my Sling Model.

Below is my sightly code :

<sly data-sly-use.mySlingModal="${'com.adobe.website.models.ImageModel' @ colour='red', path=resource.path}"></sly>

How to read color and path in side my sling model java class.

Can you please help me in solving this.

desktop_exl_promo_600x100_weempoweryou.png

View Entire Topic