Composite components
Introduction
Role and applications

Creating a component


Input parameters

Embedding the component

Versioning and propagation of changes
Interactions with other artifacts
Forms
Validators
Formatted content
Services and variables
Best practices
Identifying reuse opportunities
Naming and organization
Documenting the component

"Properties" tab of the composite component – documentation preview
without bumping the major version (MAJOR). If a structural or behavioral change to the component could disrupt forms using it, it's better to create a new version branch. After modifications, test the composite component in all critical scenarios – especially when the component is used in many places.
Although composite components can contain any logic, try to have them implement a reasonably uniform, clearly defined function. Avoid creating one huge composite component that handles many unrelated tasks – it's better to split it into smaller, more specialized sections. Excessive nesting of composite components (component in a component in a component, etc.) can also make debugging and understanding the form harder – use this capability judiciously, guided by the readability of the form structure.
– references to the original artifacts will be preserved. Consider whether in the new component you still want to use those original shared subcomponents, or whether you should also copy them (e.g., when changes to them should not affect your new component). This is important for maintenance – unknowingly editing a nested component can affect other places where it is used.
Check whether the composite component you need already exists in the library – especially in larger organizations a catalog of shared components may exist. Using already prepared, tested components (e.g., user authorization components, document download components, GDPR consent sections, etc.) is faster and safer than creating your own from scratch. Build new composite components only when the required functionality is not available in existing resources.
mechanism for static texts in the component, fill in their keys and values – this will make managing literals from the application level easier.



Last updated
Was this helpful?
