<b-table> doesn't call items provider function
See original GitHub issueI’v tried this feature on both versions (0.20.2 and 1.0.0-beta.3).
SomeComponent.vue
<template>
<b-table :items="itemsProvider" ...>
... omitted ...
</b-table>
</template>
<script>
export default {
data () {
return {
fields: {
...
}
}
},
methods: {
itemsProvider (context) {
console.log(context)
}
}
}
</script>
When I open a page there is nothing appears in the console.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
How do I update the items async in a b-table from Bootstrap ...
I am pulling my content from a backend using an item provider function. <b-table :items="myProvider" >. The initial call works just fine with ......
Read more >Table | Components - BootstrapVue
See the "Using Items Provider functions" section below for more details. Table item notes and warnings. Avoid manipulating record data in place, as...
Read more >Table function in Power Apps - Power Platform - Microsoft Learn
A table is a value in Power Apps, just like a string or a number. You can specify a table as an argument...
Read more >CREATE VIEW - Amazon Redshift
A late-binding view doesn't check the underlying database objects, ... The following command creates a view called myevent from a table called EVENT....
Read more >Data definition language (DDL) statements in ... - Google Cloud
VALUE is a constant expression containing only literals, query parameters, and scalar functions. The constant expression cannot contain: A reference to a table...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That is true. busy should only be set once your provider starts running, and cleared when your provider finishes and returns (either a promise, callback or provides the items table).
b-table looks at busy and prevents certain things from happening (like calling provider update a second time while one is currently running, preventing click events from propagating, etc.)
True, we will have the documentation updated.
The examples show it after the provider has started running.
We are working on a PR that will auto set/clear busy when a provider function is provided. (and busy will be a
.sync
able prop