vue-tables-2
  • Dependencies & Compatability
  • Getting Started
    • Vue Version 3
  • Client Table
    • Asynchronous Loading
    • Grouping
    • Filtering Algorithm
    • Editable Cells
  • Server Table
    • Implementations
    • Custom Request Function
    • Setting Multiple Request Parameters
    • Error Message
    • Draw Counter
  • Virtual Pagination
  • Custom Template
  • Column Templates
  • Nested Data Structures
  • Selectable Rows
  • Date Columns
  • List Filters
  • Custom Filters
  • Custom Sorting
  • Multiple Sorting
  • Child Rows
  • Conditional Cell Styling
  • Columns Visibility
  • Methods
  • Properties
  • Events
  • Slots
  • Options API
Powered by GitBook
On this page

Was this helpful?

  1. Server Table

Error Message

Display a custom error message when request fails

This feature is only available on vue-tables-2-premium and v-tables-3

In case the request fails (i.e 4xx or 5xx status) the loading message will be replaced by the (default) message: 'Error loading results'

You can modify this message using the texts.loadingError property:

options:{
  texts:{
    loadingError: 'Oops! Something went wrong'
  }
}

The tr will have the class 'VueTables__error' which you can use to style the message, e.g:

.VueTables__error {
  color:red;
}

PreviousSetting Multiple Request ParametersNextDraw Counter

Last updated 3 years ago

Was this helpful?