This module allows you to extend existing UI patterns by inheriting their fields and settings. You can reuse all components from a parent pattern or selectively inherit specific fields and settings.
This module lets you extend existing ui patterns, allowing you to reuse existing fields and settings from the parent.
The module is using the extends: property:
Example:
base_pattern:
fields:
field_a:
label: Field A
type: text
field_b:
label: Field B
type: text
settings:
setting_a:
label: Setting A
type: textfield
setting_b:
label: Setting B
type: textfieldExtends the complete pattern:
sub_pattern:
extends:
- base_pattern
Extends the settings only:
sub_pattern:
extends:
- base_pattern.settings
Extends one setting and one field:
sub_pattern:
extends:
- base_pattern.settings.settings_a
- base_pattern.fields.field_a