Views
Actions

Event: end

From Turn.js Documentation
(Difference between revisions)
Jump to: navigation, search
(Created page with "<yambe:breadcrumb>Turn Events</yambe:breadcrumb>")
 
 
(9 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
This event is triggered when the transition of a page stops.
 +
 +
{| class="wikitable"
 +
|-
 +
! scope="col"| Argument
 +
! scope="col"| Type
 +
! scope="col"| Description
 +
|-
 +
| event
 +
| Object
 +
| Event Object
 +
|-
 +
| pageObject
 +
| Object
 +
| [[Page Object|The page object]]
 +
|-
 +
| pageTurned
 +
| Boolean
 +
| True if the page was turned
 +
|}
 +
 +
Example:
 +
<pre class="javascript">
 +
 +
$("#flipbook").bind("end", function(event, pageObject, turned){
 +
  alert("turn.end:" +pageObject.page);
 +
});
 +
</pre>
 +
 +
== Event Sequence ==
 +
# [[Event: start| Start]]
 +
# [[Event: turning| Turning]]
 +
# [[Event: turned| Turned]]
 +
# [[Event: end| End]]
 +
 
<yambe:breadcrumb>Turn Events</yambe:breadcrumb>
 
<yambe:breadcrumb>Turn Events</yambe:breadcrumb>

Latest revision as of 23:39, 25 November 2012

This event is triggered when the transition of a page stops.

Argument Type Description
event Object Event Object
pageObject Object The page object
pageTurned Boolean True if the page was turned

Example:


$("#flipbook").bind("end", function(event, pageObject, turned){
  alert("turn.end:" +pageObject.page);
});

[edit] Event Sequence

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