Option: when: Difference between revisions

From Turn.js Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Sets event listeners. The keys must be listed on the [[Turn Events|event list]].   
Sets event listeners. The keys must be listed on the [[Turn Events|list of events]].   


{| class="wikitable"
{| class="wikitable"

Revision as of 03:08, 6 July 2012

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

Type Object
Default value Empty object

For example:

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

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