index_subhead

available commands and their arguments

gotoPage
nxtbookCommand("gotoPage", pageNumber);
pageNumber: Number - The page number to turn the Nxtbook to.
Turns the book to the specified page number.

gotoPageId
nxtbookCommand("gotoPageId", pageId);
pageId: String - The page id to turn the Nxtbook to.
Turns the book to the specified page id.

printRange
nxtbookCommand("printRange", startPage, endPage);
startPage: String - The page id to start printing with.
endPage: String - The page id to end printing with.
Prints a range of pages from the book.

savePDF
nxtbookCommand("savePDF");
Initiates a PDF download of the book.

sendLoaderEvent
nxtbookCommand("sendLoaderEvent");
If the animation is acting as a custom preloader for the book, then this function will tell the book that the animation is complete and the book can now be shown when it is ready.

showAboutWindow
nxtbookCommand("showAboutWindow");
Shows the About Nxtbook window.

showArchivesPanel
nxtbookCommand("showArchivesPanel");
Shows the Archives panel.

showContentsPanel
nxtbookCommand("showContentsPanel");
Shows the Table of Contents panel.

showFlagsPanel
nxtbookCommand("showFlagsPanel");
Shows the Flags panel.

showMailPanel
nxtbookCommand("showMailPanel");
Shows the Email panel.

showNotesPanel
nxtbookCommand("showNotesPanel");
Shows the Notes panel.

showPagesPanel
nxtbookCommand("showPagesPanel");
Shows the Page Thumbnails panel.

showPrintPanel
nxtbookCommand("showPrintPanel");
Shows the Print panel.

showSavePanel
nxtbookCommand("showSavePanel");
Shows the save panel.

showSharePanel
nxtbookCommand("showSharePanel");
Shows the Share panel.

showSubscribePanel
nxtbookCommand("showSubscribePanel");
Shows the Subscribe panel.

showZoomPanel
nxtbookCommand("showZoomPanel");
Shows the Zoom Settings panel.

toggleFullScreen
nxtbookCommand("toggleFullScreen");
Toggles Full Screen mode on and off.