-
-
Notifications
You must be signed in to change notification settings - Fork 173
BTable Advanced Features implementations #643
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
Conversation
…which makes it globally customizable
…table now uses an internal object for the items when items manipulation is required in cases such as Table Sorting, Table Filtering, Pagination
|
In addition, could you review the issue in #642 related to the BTable component? I mentioned it may be because of a function wrapper, but it seems it's losing reactivity. |
…s a specific page of the given items when the per-page prop is passed.
…sort an object-formed column that includes multiple properties (ex: name: { first: 'Dickerson', last: 'Macdonald' })
…lterable prop to specify which fields should be filtered
…abling the responsive functionality
…s such as centering text using CSS
…zy prop but it mounts the child component only once.
|
@VividLemon I think that will be it for this PR, I believe that the table now behaves more like BS-Vue2 with a bit more flavor. |
|
Once #642 has a solution I will review this further. It's an active issue and merging one or the other PR will be a merge conflict. Not that it's a big deal, just best to be on the same page and all finding a solution. |
I am not really sure what is the issue in #642 since the row.details toggle is working fine with me since the last release, However, if there is an issue it might get fixed with the recent changes because it is working as you can see in the video below: We can still wait for a bit from the issue creator to give me an example code that has the issue or at least explain how to replicate it. |
Interesting, can you send a your min example. I attempted to add toggle functionality as followed in this file Maybe its vuepress? |
|
Perhaps it is best to merge this large change, then solve the issue. As we'd all be working with the same file Obviously by "we", I mean you two. Just me totally taking credit |
|
Based on this example, when filtering the table, the hidden rows that are used for expanding/collapsing more details are gone. Is there a way to prevent that? Allowing expanding the rows to show more info even while filtering... |
BEGIN_COMMIT_OVERRIDE
BREAKING CHANGES: The content of BTable items prop will not be updated anymore! The table now uses an internal object for handling item manipulation when it is required in cases such as Table Sorting, Table Filtering, and Pagination.
feat(BTab): added a new
lazyOnceprop, The prop works similarly to thelazyprop but it mounts the child component only once.feat(BTable): implemented per page prop functionality.
feat(BTable): added functionality to
current-page prop, The prop shows a specific page of the given items when the per-page prop is passed.feat(BTable): added
filterprop to filter the table content.feat(BTable): added
filterableprop to specify which fields should be filtered, this prop is known in bs-vue2 asfilter-included-fields.feat(Btable): sortable tables now have the sort icon added using CSS which makes them now globally customizable through CSS.
fix(BTable): Fixed sorting issues where sorting had no effect when trying to sort an object-formed column that includes multiple properties (ex: name: { first: 'Dickerson', last: 'Macdonald' }).
fix(BTable): fixed incorrect responsive-class prop name which was disabling the responsive functionality.
fix(BTable): the header display changed to be inline to enable more customizations such as centering the header text using CSS.
END_COMMIT_OVERRIDE
In this PR the BTable component will be updated with all of the advanced features such as Filtering, Pagination, Fixes for item manipulation, and the core logic of the component.
This PR might have many BREAKING CHANGES and a high impact on the component's logic.
I am going to try to get the full example of BTable of BootstrapVue2 to be fully working with this library, Which includes the same props, outputs, and behavior.
BootstrapVue2 BTable full example playground:
https://codesandbox.io/s/restless-cookies-8367fy?file=/src/App.vue
The working example:

Btab example
After clicking the tabs in order multiple times

output: