Expand my Community achievements bar.

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

Avatar

Level 7

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?

2 Replies

Avatar

Community Advisor

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.

Avatar

Level 7

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