Views
From Turn.js Documentation
(Difference between revisions)
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 a simple 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== | ==See also== |
Revision as of 23:44, 25 November 2012
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.
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
Main Page > Views