Sorted Header, JavaScript Programming Example of Sorted Header

Sorted Header, JavaScript Programming Example of Sorted Header

Get the programming example for configuring the order of Pivot columns headers. Don't hesitate to use free coding samples by Webix to enhance your JavaScript skills and create custom business applications.

JS Code

webix.ui({
  id:"pivot",
  view:"pivot",
 
  url:"//docs.webix.com/samples/61_pivot/common/data.json",
  max: true,
  structure:{
    columnSort: {
      // "year" columns
      "year": {
        dir: "desc"
      }
    },
    rows: ["continent"],
    columns: ["year"],
    values: [{name:"balance", operation:["min","max"]}]
  }
});