AEM Style System, how can I re-use options for many components? | Community
Skip to main content
Level 6
April 14, 2023

AEM Style System, how can I re-use options for many components?

  • April 14, 2023
  • 1 reply
  • 740 views

Most of my AEM component's requires a magins optons. What can I do to ensure that all component's have style system for the margin options?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Ravi_Pampana
Community Advisor
Community Advisor
April 15, 2023

Hi,

 

You can create the common dialog having margin options and use below options to include common dialog items to a component

 

sling:resourceType: granite/ui/components/coral/foundation/include

path: /apps/myproject/components/include/utilities/cq:dialog/content/items/tabs/items/utilities

 

Also, write a common sling model which reads the margin values and add the values in sightly.

Level 6
May 2, 2023

Thanks for the reply, but I only want to use style system at this point, how can I do this?