Wijmo UI for the Web
data Option

Default value: []

An object collection that contains the data of the carousel.

Syntax
Javascript (Usage) 
$(function () {
    
    // Get value
    var value; // Type:  array
    value = $(".selector").wijcarousel("option", "data");
    
    // Set value
    var newValue; // Type:  array
    $(".selector").wijcarousel("option", "data", newValue);
        
});
Javascript (Specification) 
var data : array;
Example
:
$("#element").wijcarousel( { data: [{
    imageUrl: "../thumb/image1.jpg",
    linkUrl: "../images/image1.jpg",
    content: "",
    caption: "<span>Word Caption 1</span>"
},{
    imageUrl: "../thumb/image2.jpg",
    linkUrl: "../images/image2.jpg",
    content: "",
    caption: "<span>Word Caption 2</span>"
}] } );
Browser Compatibility
7
5
5

See Also

Reference

options type
wijcarousel jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.