Expand my Community achievements bar.

SOLVED

Campaign Generic Components

Avatar

Level 4

Hi, 

I am having trouble figuring out how to add inline styles to Campaign Generic Components 

  • Row - Dual Column 
  • Row - Dual Column Small 
  • Row - Dual Column Flip 
  • Row - Single Column 

 

StrawHatM23_0-1637255478125.png

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @StrawHatM23 ,

You can add these styles item in dialog style system and from there you can get it either through model or properties:

 

<sly data-sly-resource="${parRight @ resourceType='wcm/components/parsys/', appendPath='/*', decorationTagName='div', cssClassName="${properties.inlineStyle @ context='styleString'}"></sly>

 


Thanks
Tarun


View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @StrawHatM23 ,

You can add these styles item in dialog style system and from there you can get it either through model or properties:

 

<sly data-sly-resource="${parRight @ resourceType='wcm/components/parsys/', appendPath='/*', decorationTagName='div', cssClassName="${properties.inlineStyle @ context='styleString'}"></sly>

 


Thanks
Tarun


Avatar

Administrator

@StrawHatM23 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni