Paging
Commands
goToPage
goToPage
Navigates to the specified page in the flipbook.
goToNextPage
goToNextPage
Navigates to the next page in the flipbook. If the flipbook has a spread-based layout, it will navigate to the next spread.
goToPrevPage
goToPrevPage
Navigates to the previous page in the flipbook. If the flipbook has a spread-based layout, it will navigate to the previous spread.
getState
getState
Gets the current paging state.
The command will return an object with the following properties:
Property | Type | Description |
---|---|---|
|
| The current visible pages of the flipbook |
| Array of | All spreads of the flipbook |
|
| Total amount of pages in the flipbook |
Events
onChange
onChange
This subscription will trigger when the spread of a flipbook changes.
The callback contains a value/result with the following properties:
Property | Type | Description |
---|---|---|
|
| The current visible pages of the flipbook |
| Array of | All spreads of the flipbook |
|
| Total amount of pages in the flipbook |
Last updated