setStructure

задает настройки Pivot

void setStructure(object config);
configobjectобъект с параметрами для Pivot

Example

$$("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"
            ]
          }
       }
    ]
});

Related samples

Details

Формат объекта тот же, что и у свойства "structure", который вы задаете в конструкторе при инициализации пивота:

$$("structures").attachEvent("onItemClick", function(id) {
    var str = webix.copy(this.getItem(id).structure);
    $$("pivot").setStructure(str);
});
See also
Наверх
If you have not checked yet, be sure to visit site of our main product Webix javascript ui library and page of pivot table web product.