Constructor: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
The flipbook and the zoom viewport have independent constructors. | The flipbook and the zoom viewport have independent constructors. | ||
== Turn Constructor == | |||
== | <pre class="javascript"> | ||
$(".magazine").turn([options]); | |||
</pre> | |||
== Zoom viewport Constructor == | |||
<pre class="javascript"> | |||
$(".viewport").zoom(options); | |||
</pre> | |||
<yambe:breadcrumb>API</yambe:breadcrumb> | <yambe:breadcrumb>API</yambe:breadcrumb> |
Revision as of 03:23, 6 July 2012
The constructor is where either the flipbook or the zoom viewport are created. Therefore, it's called once and cannot be omitted.
The flipbook and the zoom viewport have independent constructors.
Turn Constructor
$(".magazine").turn([options]);
Zoom viewport Constructor
$(".viewport").zoom(options);
<yambe:breadcrumb>API</yambe:breadcrumb>