This commit is contained in:
@@ -134,16 +134,6 @@ import * as monaco from "monaco-editor";
|
|||||||
|
|
||||||
/*TODO:
|
/*TODO:
|
||||||
|
|
||||||
render report pdf technique I'm attempting directly from the webapi is much fuckery with mobile
|
|
||||||
instead:
|
|
||||||
render to a downloadable file either in file system or in db
|
|
||||||
return a uniquely coded url with a download token
|
|
||||||
client pops open a new window to that location and server returns it as a normal file
|
|
||||||
server deletes stored file on retrieval or in a few minutes via job, whichever comes first
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
working widget template
|
|
||||||
|
|
||||||
Immediately render last report code needs proper implementation for both widget and widgets
|
Immediately render last report code needs proper implementation for both widget and widgets
|
||||||
currently it's nonsense
|
currently it's nonsense
|
||||||
@@ -320,13 +310,23 @@ export default {
|
|||||||
notes: "",
|
notes: "",
|
||||||
roles: 124927, //all except customers
|
roles: 124927, //all except customers
|
||||||
objectType: 0,
|
objectType: 0,
|
||||||
template: `console.log('hello world');`,
|
template: `<html>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
{{#each this}}
|
||||||
|
<h1>Widget {{ Name }}</h1>
|
||||||
|
<div>{{ Notes }}</div>
|
||||||
|
{{/each}}
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>`,
|
||||||
style: `.example {
|
style: `.example {
|
||||||
color: blue;
|
color: blue;
|
||||||
}`,
|
}`,
|
||||||
jsPrerender: `function preRender(reportdata){
|
jsPrerender: `function reportPreRender(reportData){
|
||||||
//this is called before the report is rendered
|
//this function (if present) is called with the report data
|
||||||
//modify data as required here
|
//before the report is rendered
|
||||||
|
//modify data as required here and return it to change the data before the report renders
|
||||||
return reportData;
|
return reportData;
|
||||||
}`,
|
}`,
|
||||||
jsHelpers: `//Register custom Handlebars helpers here to use in your report script
|
jsHelpers: `//Register custom Handlebars helpers here to use in your report script
|
||||||
|
|||||||
Reference in New Issue
Block a user