Views
Actions

Event: turning

From Turn.js Documentation
(Difference between revisions)
Jump to: navigation, search
(Created page with "<yambe:breadcrumb>Turn Events</yambe:breadcrumb>")
 
Line 1: Line 1:
 +
This event is triggered before turning the page.
 +
 +
{| class="wikitable"
 +
|-
 +
! scope="col"| Argument
 +
! scope="col"| Type
 +
! scope="col"| Description
 +
|-
 +
| event
 +
| Object
 +
| Event Object
 +
|-
 +
| page
 +
| Number
 +
| The page number
 +
|-
 +
| view
 +
| Array
 +
| [[View|The new view]]
 +
|}
 +
 +
{| class="wikitable"
 +
|-
 +
! Default action
 +
|-
 +
| To turn the page
 +
|}
 +
 +
 +
For example:
 +
<pre class="javascript">
 +
$("#flipbook").bind("turning", function(event, page, view) {
 +
alert("Turning the page to: "+page);
 +
});
 +
</pre>
 
<yambe:breadcrumb>Turn Events</yambe:breadcrumb>
 
<yambe:breadcrumb>Turn Events</yambe:breadcrumb>

Revision as of 20:41, 6 July 2012

This event is triggered before turning the page.

Argument Type Description
event Object Event Object
page Number The page number
view Array The new view
Default action
To turn the page


For example:

$("#flipbook").bind("turning", function(event, page, view) {
	alert("Turning the page to: "+page);
});
Main Page > API > Turn Events > Event: turning