How to add a custom class to drag-and-drop image component | Community
Skip to main content
aleksandrsp9196
Level 2
April 4, 2017
Solved

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

  • April 4, 2017
  • 2 replies
  • 2212 views

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.
Best answer by Hemant_arora

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
April 7, 2017

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