Option: when: Difference between revisions

From Turn.js Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
$("#flipbook").turn({when: {
$("#flipbook").turn({when: {
turning: function(event, page, pageObject) {
turning: function(event, page, pageObject) {
// Your code
// Implementation
}
}
}
}

Revision as of 03:07, 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) {
			// Implementation
		}
	}
});


Type Object
Default value Empty object

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