]>
Commit | Line | Data |
---|---|---|
11fdf7f2 TL |
1 | export class CdTableFetchDataContext { |
2 | errorConfig = { | |
3 | resetData: true, // Force data table to show no data | |
4 | displayError: true // Show an error panel above the data table | |
5 | }; | |
6 | ||
7 | /** | |
8 | * The function that should be called from within the error handler | |
9 | * of the 'fetchData' function to display the error panel and to | |
10 | * reset the data table to the correct state. | |
11 | */ | |
12 | error: Function; | |
13 | ||
14 | constructor(error: () => void) { | |
15 | this.error = error; | |
16 | } | |
17 | } |