-
Notifications
You must be signed in to change notification settings - Fork 33
Attribute Service
Nicolas Peltier edited this page Sep 28, 2020
·
1 revision
that service is an implementation of Abstract Worker Manager and allows one component to get contextual set of attributes for its usage. We do a specific case of class
attribute as it's very likely more than one item contributes to its value.
you can use attribute map API with data-sly-attribute
while class one needs to be appended to an eventually existing String value.
will look at component's specific CA Config attributeWorkers for worker sequence, and if those workers are registered they will be executed twice:
- once to get specific attributes,
- once to get specific classes
generates a set of classes for padding and margin
generates a set of attributes for fixing in editor mode vertical height issue.