3.7 Best Practices & Tips
Keep Names Unique:
The
<route name="…">,<canvas name="…">, and<dataset name="…">should each have unique identifiers within your application.
Use Meaningful Labels:
The
<label>elements help end-users quickly identify pages or controls. Provide multi-language<label lang="cs">…</label>if needed.
Hierarchical Menus:
Use
parent="…"in<route>to create sub-menus. This helps keep your application organized.
Bridging Entities:
If you have many-to-many relationships, define a bridging resource as main_entity.other_entity, and handle fields accordingly.
Resource Types:
If you are referencing a Datanest entity or bridging entity, set
resourceType="entity".For count-based resources or specialized queries, you can define
resourceType="count".
Chart Fields:
Always specify
xField,xLabel,yField,yLabelfor charts to help the Dashboard present data properly.
Testing:
Start with a simple
<dashboard:section>(one route, one canvas, one dataset) to verify everything works. Then expand.
Last updated