Method: pages: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
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. | 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. | ||
{| class="wikitable" | |||
|- | |||
! scope="col"| Parameter | |||
! scope="col"| Type | |||
! scope="col"| Description | |||
! scope="col"| Default Value | |||
|- | |||
| pages | |||
| Number | |||
| Amount of pages | |||
| You must specify this parameter | |||
|} | |||
Example: | Example: | ||
Line 8: | Line 21: | ||
</pre> | </pre> | ||
Another example: | |||
<pre class="javascript"> | |||
$("#flipbook").turn("hasPage", 10); // It’s true. | |||
$("#flipbook").turn("pages", 5); // Sets 5 pages | |||
$("#flipbook").turn("hasPage", 10); // Returns false | |||
</pre> | |||
==See also== | |||
* [[Property: pages|Property: pages]] | |||
<yambe:breadcrumb>Turn Methods</yambe:breadcrumb> | <yambe:breadcrumb>Turn Methods</yambe:breadcrumb> |
Latest revision as of 01:40, 7 July 2012
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>