-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathApp.vue
More file actions
28 lines (27 loc) · 779 Bytes
/
App.vue
File metadata and controls
28 lines (27 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<template>
<div ref="viewer" style="position: absolute; left: 0; right: 0; top: 0; bottom: 0"></div>
</template>
<script>
import 'devexpress-reporting/dx-webdocumentviewer';
import {DxReportViewer} from 'devexpress-reporting/dx-webdocumentviewer';
import * as ko from 'knockout';
export default {
name: "WebDocumentViewer",
mounted() {
const reportUrl = ko.observable("TestReport");
const viewerRef = this.$refs.viewer;
const requestOptions = {
host: " http://localhost:5000/",
invokeAction: "DXXRDV"
};
const viewer = new DxReportViewer(viewerRef, {
reportUrl,
requestOptions
});
viewer.render();
},
beforeUnmount() {
ko.cleanNode(this.$refs.viewer);
}
};
</script>