Option: when: Difference between revisions

From Turn.js Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
{| class="wikitable"
{| class="wikitable"
|-
|-
! scope="row" align="right" | Type
! scope="row" | Type
! scope="row" | Default value
|-
| Object
| Object
|-
| <tt>Empty object</tt>
! scope="row" align="right" | Default value
| Empty object
|}
|}



Revision as of 04:16, 7 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>