Views: Difference between revisions

From Turn.js Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
A view contains the pages that are visible. Technically, it's a simple array of two values if the display is set to double page or one value if the display is single.
A view contains the pages that are visible. Technically, it's an array of two values if the display is set to double page or one value if the display is single.
 
 
==Examples of views==
 
* if the display is set to double, a flipbook of 8 pages would have the following views
<tt>[0,1]</tt>
<tt>[2,3]</tt>
<tt>[4,5]</tt>
<tt>[6,7]</tt>
<tt>[8, 0]</tt>
 
* if the display is set to single, a 4 pages long flipbook would have the following views
<tt>[1]</tt>
<tt>[2]</tt>
<tt>[3]</tt>
<tt>[4]</tt>
 
 
==See also==
* [[Property: view]]
 


<yambe:breadcrumb>Main Page</yambe:breadcrumb>
<yambe:breadcrumb>Main Page</yambe:breadcrumb>

Latest revision as of 06:44, 26 November 2012

A view contains the pages that are visible. Technically, it's an array of two values if the display is set to double page or one value if the display is single.


Examples of views

  • if the display is set to double, a flipbook of 8 pages would have the following views

[0,1] [2,3] [4,5] [6,7] [8, 0]

  • if the display is set to single, a 4 pages long flipbook would have the following views

[1] [2] [3] [4]


See also


<yambe:breadcrumb>Main Page</yambe:breadcrumb>