Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

How to add a custom class to drag-and-drop image component

Avatar

Level 2

I used: 
 

<div data-sly-resource="${'image' @resourceType='foundation/components/image'}"></div>

It has generated "cq-dd-image" class, how to add custom classes to this component?

1 Accepted Solution

Avatar

Correct answer by
Level 8

Simply overlay the default image component in your project and add the custom class as per your requirment

View solution in original post

2 Replies

Avatar

Correct answer by
Level 8

Simply overlay the default image component in your project and add the custom class as per your requirment