sets the Pivot structure
| config | object | the structure configuration object |
$$("pivot").setStructure(
"rows": ["form", "name"],
"columns": ["year"],
"values": [
{ "name": "gdp", "operation": "sum" },
{ "name": "oil", "operation": "sum" }
],
"filters": [
{
"name": "continent",
"value": {
"condition": {
"filter": "c",
"type": "notContains"
},
"includes": [
"Europe",
"Asia"
]
}
}
]
});
Format of a config object is the same as the structure parameter of the constructor:
$$("structures").attachEvent("onItemClick", function(id) {
var str = webix.copy(this.getItem(id).structure);
$$("pivot").setStructure(str);
});