paper.on('blank:pointerup', function (cell) {
alert("hello");
});
在这里,我想用filterForElement: string
constructor(
private api: someApiService) { }
someInitFunction(params:any) {
this.filterForElement = params.filterForElement // Value is available onece component is initialize.
}
onChangeDrop() {
this.api.setFilterModel({'state': {filterType: "text", type: "equals", filter: valueToUse}})
}
值代替状态。
答案 0 :(得分:0)
尝试这样:
this.api.setFilterModel({this.filterForElement: {filterType: "text", type: "equals", filter: valueToUse}})