Views
Actions

Method: hasPage

From Turn.js Documentation
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
Returns true if the flipbook has a page.
 
Returns true if the flipbook has a page.
  
 +
{| class="wikitable"
 +
|-
 +
! scope="col"| Parameter
 +
! scope="col"| Type
 +
! scope="col"| Description
 +
! scope="col"| Default Value
 +
|-
 +
| pageNumber
 +
| Number
 +
| Page Number
 +
| You must specify this parameter
  
 +
|}
 +
 +
Example:
 +
<pre class="javascript">
 +
if ($("#flipbook").turn("hasPage", 1)) {
 +
alert(‘Page 1 is already in the flipbook’);
 +
}
 +
</pre>
  
 
<yambe:breadcrumb>Turn Methods</yambe:breadcrumb>
 
<yambe:breadcrumb>Turn Methods</yambe:breadcrumb>

Revision as of 09:28, 6 July 2012

Returns true if the flipbook has a page.

Parameter Type Description Default Value
pageNumber Number Page Number You must specify this parameter

Example:

if ($("#flipbook").turn("hasPage", 1)) {
	alert(‘Page 1 is already in the flipbook’);
}
Main Page > API > Turn Methods > Method: hasPage