Skip to content
Permalink
Browse files

Added error event.

  • Loading branch information...
denyskotsur
denyskotsur committed Jun 10, 2019
1 parent 43c10b9 commit 6761af32fe27a607e50441ddaaa09d34981789bb
Showing with 4 additions and 1 deletion.
  1. +3 −0 README.md
  2. +1 −1 src/Pdfvuer.vue
@@ -198,6 +198,9 @@ The total number of pages of the pdf.
#### @loading <sup>Boolean<sup>
The provided PDF's loading state

#### @error <sup>Function<sup>
Function handler for errors occurred during loading/drawing PDF source.

### Public static methods

#### createLoadingTask(src)
@@ -220,7 +220,7 @@ export default {
self.pdfViewer.setPdfPage(pdfPage);
pdfLinkService.setViewer(self.pdfViewer);
self.drawScaled(self.scale);
})
}).catch(err => self.$emit('error', err))
},
}
</script>

0 comments on commit 6761af3

Please sign in to comment.
You can’t perform that action at this time.