Skip to content

Commit

Permalink
Update README.md for 1.4.0
Browse files Browse the repository at this point in the history
wojtekmaj committed Feb 4, 2017

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 5ea4f47 commit 2d01789
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -71,10 +71,10 @@ Check the sample directory of this repository for a full working example.
|pageIndex|Defines which page from PDF file should be displayed. Defaults to 0.|`pageIndex={2}`|
|scale|Defines the scale in which PDF file should be rendered. Defaults to 1.0.|`scale={0.5}`|
|onDocumentLoad|Function called when the document is successfully loaded to the memory.|`onDocumentLoad={({ total }) => alert('Loaded a file with ' + total + ' pages!')}`|
|onDocumentError|Function called in case of an error while loading a document.||
|onDocumentError|Function called in case of an error while loading a document.|`onDocumentError={({ message }) => alert('Error while loading document! ' + message)}`|
|onPageLoad|Function called when the page is successfully loaded to the memory.|`onPageLoad={({ pageIndex, pageNumber }) => alert('Now displaying a page number ' + pageNumber + '!')}`|
|onPageRender|Function called when the page is successfully rendered on the screen.|`onPageLoad={() => alert('Rendered the page!')}`|
|onPageError|Function called in case of an error while rendering a page.||
|onPageError|Function called in case of an error while rendering a page.|`onPageError={({ message }) => alert('Error while loading page! ' + message)}`|
## License

0 comments on commit 2d01789

Please sign in to comment.