A Function component is a component that runs a function, but doesn't appear visible in a published Space. It can then be used to populate other components.
Ways to Use the Function Component
The simplest use-case for the function component is as a way to populate multiple components in a given Space without needing to make multiple database queries.
- Add the Function Component from the component selector menu
- Click the Function component in the Space editor, and set a data source and function from the righthand component editor
- Add components to your Space and bind them to the output of the Function component using the "Binding" selector in the "Source" section of the righthand component configuration editor
- Then, using the same flow, add additional components which make use of the same Function component's output