-
Notifications
You must be signed in to change notification settings - Fork 34
Callback API
Aferdita Muriqi edited this page Nov 11, 2019
·
3 revisions
<script>
D2Reader.load({
url: new URL("http....."),
api: {
updateCurrentlocation: function (location) {
return new Promise(function (resolve, reject) {
resolve(
location
)
})
}
}
}).then(instance => {
console.log("D2Reader loaded ", instance);
}).catch(error => {
console.error("error.message ", error.message);
});
</script>
- GitHub Package
- Initialize Reader
-
Injectables
- Readium CSS
- Footnotes
- Glossary
- Fonts
- Pagebreak
- Injectable Context Menu
-
Reader API
- User Settings API
- Navigator API
- Bookmark API
- Annotation API
- TTS API
- Search API
- Callback API
-
Modules
- Bookmarks
- Annotations
- Search
- TTS