Skip to main content
aleksandrsp9196
Level 2
Apr 4, 2017 4:03 PM UTC
Solved

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

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Hemant_arora
Hemant_aroraAccepted solution
Level 8
Apr 7, 2017 11:41 AM UTC

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

2 replies

Hemant_arora
Hemant_aroraAccepted solution
Level 8
Apr 7, 2017 11:41 AM UTC

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

Translate