Views
Actions

Event: missing

From Turn.js Documentation
Jump to: navigation, 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

Example:

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

See also

Method: addPage

Main Page > API > Turn Events > Event: missing