Create a second template based on a first template using extends
Rework pending, no delivery date. The Front App SDK (ReactJS) and the Front API SDK (NodeJS) are both being replaced. This page documents the current release, remains accurate, and is maintained until the replacement ships. Code written against it keeps working.
The platform provides a simple way to create templates that not only leverage most of the options from an initial one and but also receive modifications done to the latter automatically.
Simply add the extends element to your template:
Using extends, the options of your second template will merge with the options of the first, so when you use the second template, the options will be as follows:
This will also work if you only want to retrieve the options from rechartsBar for example, but for another component. Simply specify which component in the following example:
The merged options above will apply to recharts.line as soon as you use the rechartsBarWithBiggerSize component.
There must be at least one component (keyword component or a component used as a template) defined if you use the extends. The example below will not work because neither rechartsBar nor rechartsBarWithBiggerSize have any component assigned:
Instead, this is the correct configuration:
or
Note : If you are using a chart family, you don't need to specify the
extends, by default the children gets the same options as the parent.
For example:
Here, recharts.bar gets the options from recharts and modifies the barGap property. The options for recharts.bar will then be:

