Publication
Commands
getDetails
getDetails
Retrieves details of the flipbook.
The command will return an object with the following properties:
Property | Type | Description |
---|---|---|
|
| Name of the flipbook |
|
| SEO title of the flipbook |
|
| ID of the flipbook |
|
| Is the flipbook embedded/iframed |
Events
onSpreadChange
onSpreadChange
Note:
For new implementations, we reccommend you use the paging.onChange
event instead of this event.
This subscription will trigger when the spread of the flipbook changes.
The callback contains a value/result with the following properties:
Property | Type | Description |
---|---|---|
|
| Page numbers that are in the current spread. |
|
| Page number(s) that are currently in view. This array may contain one or two numbers, depending if the current view is page- (mobile/tablet in portrait) or spread-based (desktop, or mobile/tablet in landscape). |
onPageElementClick
onPageElementClick
This subscription will trigger when a product/shop item action is clicked.
Note:
Current only shop items will fire this event. Click events on any other enrichments are not emitted.
The callback contains a value/result with the following properties:
Property | Type | Description |
---|---|---|
|
| The page element type that was clicked on |
|
| Data associated with the page element |
|
| Shop item title |
|
| Shop item description |
|
| Shop item product ID |
|
| Shop item price |
|
| If users are allowed to manually specify an amount before adding to basket |
|
| Number of items per package |
|
| Event data associated with the click event |
|
| Page number on which the page element is located on |
|
| Page numbers on which the spread where the page element is located on |
|
| Absolute x coordinate of the click event |
|
| Absolute y coordinate of the click event |
|
| Ratio of the x coordinate relative to book width |
|
| Ratio of the y coordinate relative to book height |
Last updated