Editing a Dashboard Template in the Designer
Our sample projects and report templates can help you learn the basics of working with our products.The dashboard designer is hosted the same way as the viewer — create a
Build the designer in a Flask view.
How it works. The designer runs client-side while Python serves the page and handles its callbacks, so users edit dashboards without a desktop app.
StiDesigner, load a dashboard, and serve the framework response.Build the designer in a Flask view.
designer = StiDesigner()
if designer.processRequest(request):
return designer.getFrameworkResponse()
report = StiReport()
report.loadFile(url_for('static', filename='reports/WebsiteAnalytics.mrt'))
designer.report = report
return designer.getFrameworkResponse()StiDesigner()— the designer component;processRequest/getFrameworkResponsework exactly as for the viewer.designer.report = report— the dashboard the user will edit in the browser.
How it works. The designer runs client-side while Python serves the page and handles its callbacks, so users edit dashboards without a desktop app.