How to add titles and descriptions to your solution
Would you like to add descriptions and titles to provide more information about your solution? Then add static text to your solution by following these steps.
- You configured the frames and routes for your solution.
- You configured the relevant contents such as the model(s), control panel(s), viewer(s) and datastore.
1. Add a text control to the control panel
- Create a control with
kind: Textin the control panel.
- Define the
textto display in the control panel.
- Optionally define the
typeto change the font. The
💡 To change the order of the controls in your solution, you can re-order them in the configuration. For example, if you’d like to add a title to the top of the control panel, make sure it’s the first item in your control panel configuration.
The configuration should look similar to the example below:
contents: my-control-panel: kind: ControlPanel controls: my-text: kind: Text text: This is my text. type: lead # optional
This example illustrates how to configure different text types.
- Create a file
solution.yamlfile with the text types example solution file content.
- Deploy using the cli:
ph deploy solution -o <org-slug> <solution-name>
The solution should look like the image below.
See the textControlConfig schema docs for more information.