Method: pages

From Turn.js Documentation
Revision as of 01:40, 7 July 2012 by Emmanuel (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sets the number of pages. If the number of pages is less than the current one, the additional pages will be removed from the flipbook.

Parameter Type Description Default Value
pages Number Amount of pages You must specify this parameter

Example:

$("#flipbook").turn("pages", 5);

Another example:

$("#flipbook").turn("hasPage", 10); // It’s true. 
$("#flipbook").turn("pages", 5); // Sets 5 pages
$("#flipbook").turn("hasPage", 10); // Returns false

See also

<yambe:breadcrumb>Turn Methods</yambe:breadcrumb>