Create custom components
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.
Data Platform lets you create your own fully customized components. This is done in two steps. First, you create a custom component, then you add it to your app.
For more specific guides, you can also check out the pages about creating your own:
Step 1: Create the component
Create the main component file
Create a style file
Create and load files
Create an index
Add it to the components index
At that moment, your component is ready to use, it will allow you to display the HTML set inside the render function of the React component, and it will need a props name to display the welcome message.
Step 2: Add it to your configuration
From JSON
You can add the component to two different parts of the application.
Inside a Dashboard
Open a dashboard file ./config/dashboards/overview.json
Create a new item inside the root items or anywhere inside a panel.
In the following sample, the hello component has been added inside a panel.
You can set props directly inside the JSON (name: user in the following sample)
Inside a menu
Open a menu file ./config/menus/header.json
Create a new item inside a container.
The component should now appear in your menu.
From Architect
First, you need to upload your app with the new code, rebuild it, and deploy it.
Then, go in Dashboard, and select a dashboard to edit. Select a + button (in menu or dashboard) then click on custom.
You will have to add it in JSON:
Click Confirm.
Congratulations! 🎉 You should now see the component inside your dashboard.
Ready to go even further?
?>➡️ Learn how to create custom charts!
?>➡️ Learn how to create custom dynamic parameters!

