Option: pages: Difference between revisions

From Turn.js Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Sets an arbitrary number of pages. If the number of pages is bigger than the number of elements in the <tt>#flipbook</tt>, it will be necessary to load those pages dynamically using the [[Method: addPage|addPage]] method.
Sets an arbitrary number of pages. If the number of pages is bigger than the number of elements in the <tt>#flipbook</tt>, it will be necessary to add those pages dynamically using the [[Method: addPage|addPage]] method.


{| class="wikitable"
{| class="wikitable"
|-
|-
! scope="row" align="right" | Type
! scope="row" | Type
! scope="row" | Default value
|-
| Number
| Number
|-
! scope="row" align="right" | Default value
| <pre class="javascript">$("#flipbook").children().length</pre>
| <pre class="javascript">$("#flipbook").children().length</pre>
|}
|}


<yambe:breadcrumb>Turn Options</yambe:breadcrumb>
<yambe:breadcrumb>Turn Options</yambe:breadcrumb>

Latest revision as of 04:15, 7 July 2012

Sets an arbitrary number of pages. If the number of pages is bigger than the number of elements in the #flipbook, it will be necessary to add those pages dynamically using the addPage method.

Type Default value
Number
$("#flipbook").children().length

<yambe:breadcrumb>Turn Options</yambe:breadcrumb>