File

src/app/shared/models/cd-table-fetch-data-context.ts

Index

Properties

Constructor

constructor(error: () => void)
Parameters :
Name Type Optional
error function No

Properties

error
Type : Function

The function that should be called from within the error handler of the 'fetchData' function to display the error panel and to reset the data table to the correct state.

errorConfig
Type : object
Default value : { resetData: true, // Force data table to show no data displayError: true // Show an error panel above the data table }
export class CdTableFetchDataContext {
  errorConfig = {
    resetData: true, // Force data table to show no data
    displayError: true // Show an error panel above the data table
  };

  /**
   * The function that should be called from within the error handler
   * of the 'fetchData' function to display the error panel and to
   * reset the data table to the correct state.
   */
  error: Function;

  constructor(error: () => void) {
    this.error = error;
  }
}

result-matching ""

    No results matching ""