I currently have data stored in this.state.data. I would like the pivot table to have the updated data whenever this.state.data is updated. How can I go about doing that?
componentDidMount(){
var pivot = {
id:“pivot”,
view:“pivot”,
max: true,
defaultOperation: “string”,
externalProcessing: false,
structure: {
rows: [],
columns: [],
values: [],
filters:[]
},
};
this.ui = webix.ui({
cols:[
pivot,
],
isolate:true,
container:ReactDOM.findDOMNode(this.refs.root)
});
this.ui.$$("pivot").parse(this.state.data);
}