Skip to content

Attribute Service

Nicolas Peltier edited this page Sep 28, 2020 · 1 revision

Attribute service

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.

Concept

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

Available Workers

Spacing

generates a set of classes for padding and margin

AuthorVh (available with admin app)

generates a set of attributes for fixing in editor mode vertical height issue.