Event: missing

From Turn.js Documentation
Revision as of 06:38, 26 November 2012 by Emmanuel (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This event is triggered when some pages are required in the current range.

Argument Type Description
event Object Event Object
pages Array Pages having to be added


$("#flipbook").bind("missing", function(event, pages) {
  for (var i = 0; i < pages.length; i++) {
    $(this).turn("addPage", $("<div />"), pages[i]);

See also

Method: addPage

<yambe:breadcrumb>Turn Events</yambe:breadcrumb>