get / set current chapter and page number

69 views
Skip to first unread message

AJ

unread,
Oct 20, 2014, 5:40:29 AM10/20/14
to monoc...@googlegroups.com
Hi

1. I wanted to get the current chapter and its page number (page that is showing) via javascript.
2. I want to MOVE to the chapter and page number recorded at (1).

I am using mobile, so there's no resize and page numbers stay the same.

Many thanks for your help in advance.

AJ

unread,
Oct 21, 2014, 7:03:05 AM10/21/14
to monoc...@googlegroups.com

Mithlesh Kumar

unread,
Nov 26, 2014, 2:59:21 AM11/26/14
to monoc...@googlegroups.com
Page Number will change as per orientation of device. So Move to according to page number is not good idea instead you can use percent.
Monocle provides moveTo method where you can pass locus having value {componentId:'', percent:''}.
Reply all
Reply to author
Forward
0 new messages