This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
</v-btn>
|
||||
|
||||
<v-btn value="jsPrerender">
|
||||
Pre-render
|
||||
PrepareData
|
||||
</v-btn>
|
||||
|
||||
<v-btn value="jsHelpers">
|
||||
@@ -137,6 +137,11 @@ import * as monaco from "monaco-editor";
|
||||
/*TODO:
|
||||
|
||||
Example api helper for docs
|
||||
http://localhost:7575/api/v8/enum-list/list/AyaType
|
||||
|
||||
determine course of action to handle locale keys list for report based on fields in data source
|
||||
I'm thinking of replicating the Client translation.js code for this as it's simple and tested
|
||||
|
||||
|
||||
complete docs as much as needed for now then...
|
||||
|
||||
@@ -356,10 +361,11 @@ export default {
|
||||
style: `.example {
|
||||
color: blue;
|
||||
}`,
|
||||
jsPrerender: `function reportPreRender(reportData){
|
||||
jsPrerender: `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
|
||||
|
||||
Reference in New Issue
Block a user