Views
Actions

Option: when

From Turn.js Documentation
Revision as of 21:16, 6 July 2012 by Emmanuel (Talk | contribs)

Jump to: navigation, search

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
		}
	}
});
Main Page > API > Turn Options > Option: when