Report designer refinement and docs
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user