Wijmo UI for the Web
wijgallery jQuery Widget
Display images in a customizable slideshow collection and animate transitions between images, display previous and next thumbnail images, add captions, and more.
Syntax
Javascript (Usage) 
$(function () {
    var options; // Type:  wijmo.gallery.wijgallery.options
     
    $(".selector").wijgallery(options);
});
Javascript (Specification) 
function wijgallery() : any;
Browser Compatibility
7
5
5
Options
 NameDescription
public OptionautoPlay

Default value: false

Allows pictures to be played automatically.

 
public OptionautoPlayMovies

Default value: true

Determines whether to turn on the autoplay option in movie player.

 
public Optioncontrol

Default value: ""

Determines the innerHTML of the custom control.

 
public OptioncontrolPosition

A value that indicates the position settings for the custom control.

 
public Optioncounter

Default value: '[i] of [n]'

Determines the text format of counter.

 
public Optiondata

Default value: []

An object collection that contains the data of the gallery.

 
public OptionflashInstall

Default value: 'player\\\\expressInstall.swf'

The relative path and name of the flash installation guide.

 
public OptionflashParams

A hash object that contains parameters for flash object.

 
public OptionflashVars

A hash object that contains variants for flash object.

 
public OptionflashVersion

Default value: '9.0.115'

Version of flash object.

 
public OptionflvPlayer

Default value: 'player\\\\player.swf'

The relative path and name of the flash vedio player.

 
public Optioninterval

Default value: 5000

Determines the time span between 2 pictures showing in autoplay mode.

 
public Optionmode

Default value: 'img'

Determines the display mode of the gallery. Possible values: "img", "iframe", "swf", "flv"

 
public OptionpagingPosition

Determines the position of the pager.

 
public OptionscrollWithSelection

Default value: false

If set to true, the thumbnails will auto scrolled after you select the image.

 
public OptionshowCaption

Default value: true

Determines whether the caption of items should be shown.

 
public OptionshowControls

Default value: false

Determines whether the custom control should be shown.

 
public OptionshowControlsOnHover

Default value: true

Determines whether the controls should be shown after the dom element is created or hovered on.

 
public OptionshowCounter

Default value: true

Determines whether the controls should be shown after the dom element is created or hovered on.

 
public OptionshowMovieControls

Default value: false

Determines whether to turn on the movie controls in movie player.

 
public OptionshowPager

Default value: false

Determines if the pager should be shown.

 
public OptionshowThumbnailCaptions

Default value: false

Determines whether to show captions for the thumbnails in the gallery.

 
public OptionshowTimer

Default value: true

Determines if the timer bar should be shown.

 
public OptionthumbnailDirection

Default value: 'after'

Determines the direction of the thumbnails. Possible values are: "before" and "after".

 
public OptionthumbnailOrientation

Default value: 'horizontal'

Determines the orientation of the thumbnails. Possible values are: "vertical" and "horizontal".

 
public OptionthumbsDisplay

Default value: 5

Determines how many thumbnails should be displayed.

 
public OptionthumbsLength

Default value: 100

Determines the length of the thumbnails.

 
public Optiontransitions

A value that determines the settings of the animation effect to be used when the wijgallery is scrolling.

 
Top
Methods
 NameDescription
public MethodaddAdds a custom item with specified index. The first parameter is the new item to add, it should be a jQuery Element or HTML string. The second parameter is the index of item to add , If no index specified the item will be added at the last of item collection.  
public MethodcountReturns a count of the number of items in the gallery.  
public MethoddestroyRemoves the wijgallery functionality completely. This returns the element to its pre-init state.  
public MethodnextShows the next picture.  
public MethodpauseStops automatically displaying the images in order.  
public MethodplayStarts automatically displaying each of the images in order.  
public MethodpreviousShows the previous picture.  
public MethodremoveRemoves the item at specified index. The parameter is the index of item to add , If no index specified the last item will be removed.  
public MethodshowShows the picture at the specified index.  
public MethodwidgetReturns a jQuery object containing the original element or other relevant generated element.  
Top
Events
 NameDescription
public EventafterTransitionThe afterTransition event handler. A function called after the transition is over.  
public EventbeforeTransitionThis is the beforeTransition event handler. It is a function called before transitioning to another image.  
public EventloadCallbackThe loadCallback event handler. A function called after the dom element is created.  
Top

See Also

Widgets

Gallery

Reference

wijgallery jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.