Wijmo UI for the Web
data Option

Default value: null

Determines the datasource. Possible datasources include: 1. A DOM table. This is the default datasource, used if the data option is null. Table must have no cells with rowSpan and colSpan attributes. 2. A two-dimensional array, such as [[0, "a"], [1, "b"]]. 3. An array of objects, such as [{field0: 0, field1: "a"}, {field0: 1, field1: "b'}]. 4. A wijdatasource. 5. A wijdataview.

Syntax
Javascript (Usage) 
$(function () {
    
    // Get value
    var returnsValue; // Type:  object
    returnsValue = $(".selector").wijgrid("option", "data");
    
    // Set value
    var newValue; // Type:  object
    $(".selector").wijgrid("option", "data", newValue);
        
});
Javascript (Specification) 
var data : object;
Example
// DOM table
$("#element").wijgrid();
// two-dimensional array
$("#element").wijgrid({ data: [[0, "a"], [1, "b"]] });
Browser Compatibility
7
5
5

See Also

Reference

options type
wijgrid jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.