Loading Process of Bootstrap table Custom Prompt

  • 2021-07-22 08:35:31
  • OfStack

bootstrap-table is a table plug-in written on the basis of bootstrap-table, which is specially used to display data. bootstrap is from Twitter, which is the most popular front-end framework at present. Bootstrap is based on HTML, CSS and JAVASCRIPT, which has the advantages of simple, flexible and fast front-end development. bootstrap is not described here.

In the process of using Bootstrap table, customized prompts are sometimes displayed as needed, such as prompts that no matching records are found, prompts that are in the process of loading, and so on.

The following is a brief introduction to the customization of query results and prompts during loading.


$table.bootstrapTable(
  columns:[
   ... 
  ],
  formatNoMatches: function(){
    return " There is no relevant match result ";
  } , 
  formatLoadingMessage: function(){
    return " Please wait a moment, it is loading. . . ";
  }
);

Reference:

Bootstrap table Official Document


Related articles: