Views
Actions

Event: turned

From Turn.js Documentation
(Difference between revisions)
Jump to: navigation, search
m
 
Line 23: Line 23:
 
<pre class="javascript">
 
<pre class="javascript">
 
$("#flipbook").bind("turned", function(event, page, view) {
 
$("#flipbook").bind("turned", function(event, page, view) {
alert("Page: "+page);
+
  alert("Page: "+page);
 
});
 
});
 
</pre>
 
</pre>

Latest revision as of 23:38, 25 November 2012

This event is triggered after turning the page.

Argument Type Description
event Object Event Object
page Number The new page number
view Array The new view

For example:

$("#flipbook").bind("turned", function(event, page, view) {
  alert("Page: "+page);
});

[edit] Event Sequence

  1. Start
  2. Turning
  3. Turned
  4. End
Main Page > API > Turn Events > Event: turned