Unplanned
Last Updated: 22 Apr 2020 14:48 by ADMIN
RDot
Created on: 22 Apr 2020 14:48
Category: PDFViewer
Type: Feature Request
0
Add MVVM source binding for PDFViewer file

Currently it is not possible to bind the PDFViewer to a file from the view model:

<div data-role="pdfviewer"
             data-pdfjs-processing-file="{file: fileToLoad}"
             data-width="100%"
             data-height="700"
             data-bind="events: { source: }">
 </div>

<script>
  var viewModel = kendo.observable({
      	fileToLoad: "https://demos.telerik.com/kendo-ui/content/web/pdfViewer/sample.pdf"
  }
</script>

0 comments