-
-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve the examples format on the README file #67
base: master
Are you sure you want to change the base?
Improve the examples format on the README file #67
Conversation
improved code formatting and added syntax highlighted without changing any description or even word.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var loadingTask = pdf.createLoadingTask('https://cdn.mozilla.net/pdfjs/tracemonkey.pdf');
should read:
var loadingTask = VuePdf.createLoadingTask('https://cdn.mozilla.net/pdfjs/tracemonkey.pdf');
Thanks, it's done. |
README.md
Outdated
<template> | ||
<pdf src="./static/relativity.pdf"></pdf> | ||
<vue-pdf src="./static/relativity.pdf" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good, just for the record: Self-closing components
this.numPages = pdf.numPages; | ||
}); | ||
}, | ||
components: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please move "components" at the top (https://vuejs.org/v2/style-guide/#Component-instance-options-order-recommended)
README.md
Outdated
}); | ||
} | ||
}, | ||
components: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"components" =>top
#### @error <sup>Object<sup> | ||
Triggered when an error occurred. | ||
|
||
|Name|Attributes|Listen to|Description| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it possible to avoid line-break for the "Listen to" column ?
README.md
Outdated
<vue-pdf | ||
src="https://cdn.mozilla.net/pdfjs/tracemonkey.pdf" | ||
@num-pages="pageCount = $event" | ||
@page-loaded="currentPage = $event" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please move />
to the newt line, aligned with <vue-pdf
README.md
Outdated
:key="i" | ||
:src="src" | ||
:page="i" | ||
style="display: inline-block; width: 25%" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/>
=> next line
README.md
Outdated
</button> | ||
<vue-pdf | ||
ref="myPdfComponent" | ||
src="https://cdn.mozilla.net/pdfjs/tracemonkey.pdf" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/>
=> next line
README.md
Outdated
<button @click="logContent">log content</button> | ||
<vue-pdf | ||
ref="myPdfComponent" | ||
src="https://cdn.mozilla.net/pdfjs/tracemonkey.pdf" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/>
=> next line
README.md
Outdated
@password="password" | ||
@progress="loadedRatio = $event" | ||
@error="error" | ||
@num-pages="numPages = $event" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/>
=> next line
* move components closing tag to a new line. * move components object to the top.
@FranckFreiburger almost all are done. |
improved formatting added syntax highlighted to examples snippets, I've not changed any description or even a word just formatting.