(data: object[], columns?: Column[])
| 30 | } |
| 31 | |
| 32 | public setData(data: object[], columns?: Column[]) { |
| 33 | const differentData = this.data !== data; |
| 34 | if (differentData) { |
| 35 | if (this.data) { |
| 36 | //clean up things we added to old data |
| 37 | this.deselect(); |
| 38 | } |
| 39 | this.data = data; |
| 40 | this.columns = columns; |
| 41 | this.filteredData = null; |
| 42 | this.filteredColumnsStats = {}; |
| 43 | } |
| 44 | return differentData; |
| 45 | } |
| 46 | |
| 47 | public setFilteredData(filteredData: object[]) { |
| 48 | this.filteredData = filteredData; |