Option: when: Difference between revisions

From Turn.js Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:


<pre class="javascript">
<pre class="javascript">
$("#flipbook").turn({when: {
$("#flipbook").turn({when: {
turning: function(event, page, pageObject) {
turning: function(event, page, pageObject) {
// Your code
// Your code

Revision as of 03:06, 6 July 2012

Sets event listeners. The keys must be listed on the event list. For example:

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


Type Object
Default value Empty object

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