Classes
-
new TemplateFactory()
A factory for galleries allowing them to be easily registered and created.
-
-
new PagingFactory()
A factory for paging types allowing them to be easily registered and created.
-
-
new Template( [ options [, element ] ] )
The primary class for FooGallery, this controls the flow of the plugin across all templates.
-
-
new Component( template )
The base class for all child components of a template.
-
-
new State( template )
This class manages all the getting and setting of its' parent templates' state.
-
-
new Item( template [, options ] )
The base class for an item.
-
-
new Items( template )
This class controls everything related to items and serves as the base class for the various paging types.
-
-
new MasonryTemplate( [ options [, element ] ] )
The Masonry template for FooGallery.
-
-
new ImageViewer( element, options )
The main class for the Image Viewer template for FooGallery.
-
Namespaces
-
utils
This namespace contains common utility methods and code shared between our plugins.
-
Members
-
<static> $ :jQuery
A reference to the jQuery object the plugin is registered with.
-
Description
This is used internally for all jQuery operations to help work around issues where multiple jQuery libraries have been included in a single page.
Examples
<script src="jquery-1.12.4.js"></script> <script src="foogallery.js"></script> <script src="jquery-2.2.4.js"></script> <script> jQuery(function($){ $(".selector").foogallery(); // => This would throw a TypeError: $(...).foogallery is not a function }); </script>
<script src="jquery-1.12.4.js"></script> <script src="foogallery.js"></script> <script src="jquery-2.2.4.js"></script> <script> FooGallery.$(function($){ $(".selector").foogallery(); // => It works! }); </script>
Details
-
<static> emptyImage :string
The url of an empty 1x1 pixel image used as the default value for the
placeholder
anderror
options. -
Details
-
<static> dataTemplate :string
The name to use when getting or setting an instance of a template on an element using jQuery's
.data()
method. -
Details
-
<static> dataItem :string
The name to use when getting or setting an instance of a item on an element using jQuery's
.data()
method. -
Details
-
<static> template :FooGallery.TemplateFactory
The factory used to register and create the various template types of FooGallery.
-
Details
-
<static> paging :FooGallery.PagingFactory
The factory used to register and create the various paging types of FooGallery.
-
Details
-
<static> components :FooGallery.utils.Factory
A factory for registering and creating basic gallery components.
-
Details
Type Definitions
-
State
An object used to store the state of a template.
-
Properties
Name Type Attributes Description p
number <optional> The current page number.
i
string <optional>
<nullable>The currently selected item.
Details