Enable configuration of components with inherited controllers in component builder
Learn how components can inherit page resources.
Using component builder, developers add data resources in two ways: directly within the component or through inheritance from the page.
Direct configuration
When you add data resources directly to a component, they remain contained within that component. These internal data resources are not visible or accessible when the component is placed on a page.
Inheritance
You can configure a component to inherit data resources from the page where it's placed. When inheritance is enabled, the component scans for data resources of the same type and automatically connects to them. For example, a component configured to inherit form controllers will look for form controllers on the page. This allows the component to be used across different page contexts and leverage existing data resources without manual configuration each time.
When you place a component configured for inheritance on a page, the inheritance behavior works as follows:
| Matching resources found | Behavior |
|---|---|
| No match found | Creates a new resource of the same type using the component's initial configuration |
| One | Connects to that resource |
| Multiple | Connects to the first instance of that resource |
Enable configuration of components with inherited controllers
Configure components to automatically inherit controllers and data resources when placed on pages.
Avant de commencer
Role required: ui_builder_admin
Pourquoi et quand exécuter cette tâche
In this Component Builder example, we will create a text component and configure it to inherit the List controller. We will then place it on an list page where the component connects to the List controller and displays the appropriate table name.