webix pivot giving error when i pass filters parameter

Hi maria, whenever i pass parameter on filter block i am getting below error Uncaught TypeError: n.attachEvent is not a function
webix.ui({ popup:{ width:800, height:400 }, view: “pivot”, container: “gridContainer”, id: “pivot”, data: pivot_dataset, structure: { columns :“Sector”, rows: Entity, values: [ { name:“Wallet” , operation: “sum”}

     ] ,
filters:"SOW"

}

}); kindly give me solution

Hi,

filters should contain json array with field name and filter type definition:

filters:[{name:"SOW",type:"select"}]

There is a typo in Filters description in Pivot docs. We will correct the mistake.

Please check 61_pivot/01_init/03_configuring.html demo in your pivot package.