Option: when: Difference between revisions

From Turn.js Documentation
Jump to navigation Jump to search
(Created page with "-")
 
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
-
Sets event listeners. The keys must be listed on the [[Turn Events|list of events]]. 
 
{| class="wikitable"
|-
! scope="row" | Type
! scope="row" | Default value
|-
| Object
| <tt>Empty object</tt>
|}
 
For example:
<pre class="javascript">
$("#flipbook").turn({when: {
turning: function(event, page, pageObject) {
// Implementation
}
}
});
</pre>
 
<yambe:breadcrumb>Turn Options</yambe:breadcrumb>

Latest revision as of 00:02, 9 July 2012

Sets event listeners. The keys must be listed on the list of events.

Type Default value
Object Empty object

For example:

$("#flipbook").turn({when: {
	turning: function(event, page, pageObject) {
		// Implementation
	}
}
});

<yambe:breadcrumb>Turn Options</yambe:breadcrumb>