Option: when: Difference between revisions
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|event list]]. For example: | ||
<pre class="javascript"> | |||
$("#flipbook").turn({when: { | |||
turning: function(event, page, pageObject) { | |||
// Your code | |||
} | |||
} | |||
}); | |||
</pre> | |||
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>