Report designer refinement and docs

This commit is contained in:
2021-10-13 17:44:34 +00:00
parent ee703e24c0
commit 6a7f6cea34
2 changed files with 15 additions and 16 deletions

View File

@@ -497,27 +497,19 @@ export default {
<body>
{{#each ayReportData}}
<!-- Your template here see Help for details -->
<h2>{{ Name }}</h2>
<div>Notes: <span class='example'>{{ Notes }}</span></div>
{{/each}}
</body>
</html>`,
style: `.example {
color: blue;
style: "",
jsPrerender: `async function ayPrepareData(ayData){
return ayData;
}`,
jsPrerender: `async function ayPrepareData(reportData){
//this function (if present) is called with the report data
//before the report is rendered
//modify data as required here and return it to change the data before the report renders
//see the help documentation for details
return reportData;
}`,
jsHelpers: `//Register custom Handlebars helpers here to use in your report script
//https://handlebarsjs.com/guide/#custom-helpers
Handlebars.registerHelper('loud', function (aString) {
return aString.toUpperCase()
})`,
jsHelpers: "",
renderType: 0,
headerTemplate: null,
footerTemplate: null,