question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Show loading message for b-table.

See original GitHub issue

There is already a show-empty message when a b-table is empty. However, when a b-table is still being loaded, this message appears, which causes confusion.

I suggest to implement show-loading attr for b-table.

Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:9
  • Comments:31 (29 by maintainers)

github_iconTop GitHub Comments

1reaction
tmorehousecommented, Nov 19, 2018

@ghenry PR #2196 added in a new slot for table-busy. Whenever the table is in the busy state, and the named slot exists, then the content of that slot will be show instead of an empty table or previously rendered rows.

1reaction
tmorehousecommented, Nov 2, 2018

You could place your table followed by a spinner component inside a div element as such:

<div class="table-container">
  <b-table busy.sync="isBusy" ... >
  </b-table>
  <my-spinner v-if="isBusy" class="table-spinner" />
</div>

and use a CSS sibling selector to position the spinner when busy

.table-container: {
  position: relative;
  width: 100%;
}
.b-table[aria-busy="true"] + .table-spinner {
  /* this assumes that the spinner component has a width and height */
  position: absolute;
  left: 50%
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10; /* make sure spinner is over table */
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

jQuery DataTables: How to show loading indicator during ...
Demonstrates a method of showing loading indicator when table powered by jQuery DataTables is reloaded.
Read more >
How do I show a "Loading..." message when I load the table ...
I am using 1.10.1. I have a working button (called running) like this: $('#reload').click(function (){ var path = "/runningdata"; ...
Read more >
Loading Message using Datatables - jquery - Stack Overflow
When I load the page I get a "Loading..." message, but when I reload with "table.ajax.reload()", I get no "Loading..." message which is...
Read more >
How to show loading indicator during table reload - JSFiddle
1. <h3>jQuery DataTables</h3> ; 2. <a href="https://www.gyrocode.com/articles/tag/jquery-datatables/">See more articles about jQuery DataTables</a> on <a href=" ...
Read more >
Is there a way to include the show loading message using any ...
$('.table').bootstrapTable('hideLoading'); Please let me a know a proper way of doing this avoiding the ajax call. This is the first step
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found