New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[table] Async providers, events, and enhancements #460
Conversation
Should address issue #396
Coerce slide nodelist into an Array
Resync with master
Resync with master
Resync with master
Resync with master
Resync with master
Resync with master
Resync with master
Adds support for asynchronous items providers. Deprecate itemsProvider in favour of passing function to items prop Add scoped slots for thead and tfoot cells
Finally, provider function testing is complete. |
@pi0 @alexsasharegan BS-4 supports variants on individual cells, but currently we only support variants on the entire row (via What do you guys think? This would address issue #479 |
emit row-hovered event (similar to row-clicked) Add optional _cellVariants object support for items, to sit alongside _rowVariant, to allow for coloring of individual cells. takes precedence over field.variant
Adds async provider function support (callback and Promise based)
Deprecates
items-provider
in favour of passing function toitems
propAdds scoped slot support for table header and footers
Added
busy
prop for triggering table "busy" state (via `aria-busy="true" attribute).Emits
head-clicked
event when header cells are clicked (when not busy), and arefreshed
event when the provider function has completed/resolved.Added
sort-changed
event when sorting criteria has changedAdded extra documentation.
A working prototype example can be found here: https://jsfiddle.net/dyzs5txk/ (complete with header/footer scoped slots). You can select how the items are provided to
b-table
(view the console for the various stages of data retrieval). The example requires a browser that supports Promises (just to emulate the delay in fetching data).The updated documentation provides greater detail on the new features