Wijmo UI for the Web
data Option

Default value: null

A value that specifies the underlying data source provider of wijcombobox.

Syntax
Javascript (Usage) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  any
    returnsValue = $(".selector").wijcombobox("option", "data");
    
    // Set value
    var newValue; // Type:  any
    $(".selector").wijcombobox("option", "data", newValue);
        
});
Javascript (Specification) 
var data : any;
Example
var testArray = [
           {label: 'c++',value: 'c++'}, 
           {label: 'java',value: 'java'}, 
           {label: 'php',value: 'php'}
       ];
       $("#tags").wijcombobox({
           data: testArray
       });
Remarks
This option could either be a wijdatasource object or an Object Array containing an item such as {label: "label text", value: "value"}.
Browser Compatibility
7
5
5

See Also

Reference

options type
wijcombobox jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.