-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
refactor: data-table #5737
refactor: data-table #5737
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a light run through. I think this is a good opportunity to discuss the different types of features/functionality that can come with a component and where do they go. Check https://github.com/vuetifyjs/vuetify-next for next proposed structure @vuetifyjs/core-team.
}, | ||
|
||
methods: { | ||
toggle (key: string, oldBy: string[], oldDesc: boolean[], page: number, mustSort: boolean, multiSort: boolean) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
separate lines for this many args
children.push(regularSlot) | ||
} else { | ||
if (props.mobile) { | ||
children.push(h('div', { class: 'd-flex justify-content-between' }, [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are helper classes and will make it hard to overwrite in userland
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, I know. A lot of this is still work in progress and/or placeholdery
Codecov Report
@@ Coverage Diff @@
## dev #5737 +/- ##
==========================================
- Coverage 88.56% 81.74% -6.82%
==========================================
Files 282 276 -6
Lines 6313 6438 +125
Branches 1586 1594 +8
==========================================
- Hits 5591 5263 -328
- Misses 604 955 +351
- Partials 118 220 +102
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## next #5737 +/- ##
==========================================
- Coverage 89.03% 83.26% -5.78%
==========================================
Files 310 316 +6
Lines 7561 7844 +283
Branches 1869 1936 +67
==========================================
- Hits 6732 6531 -201
- Misses 729 1209 +480
- Partials 100 104 +4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nekosaur please resolve merge conflicts
7d69acc
to
d449e27
Compare
This may be useful: multicolumn sort |
multi-column sort has been implemented already |
d449e27
to
28db79e
Compare
Ah, I might not have uploaded the latest playground. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please resolve merge conflicts.
@sh7dm This is far from done, no need to ask for merging. |
…tual table component
d4d5ec1
to
39a2d9d
Compare
Hey @nekosaur, TravisBuddy Request Identifier: 1e02e110-368b-11e9-afc2-91cde96227b3 |
I attempted to resolve merge conflicts but there were quite a few broken tests, are you tracking this @nekosaur ? |
Please keep on @nekosaur !! We all need this feature !! |
added pageCount event added progress slot added top slot
Description
Another rewrite of data-table. This time still using html table elements.
Implementing new functionality such as multi-column sorting, group by column, sort by column, per-column filtering, and fixed headers. Fixed headers will not be available in IE11 as I'm using
fixed
css property.Virtualization is being done by using dummy rows prepended and appended to tbody that expand in height to simulate the full list of items.
The following issues (and more) have been implemented so far
#1547, #2659, #2859, #3102, #3176, #3180, #3574, #3486, #2960, #3829, #3220, #2890, #3364, #6138
Motivation and Context
How Has This Been Tested?
Markup:
https://gist.github.com/nekosaur/8ffc4996d033a71d9dbff9060eb6765c
Types of changes
Checklist:
master
for bug fixes,dev
for new features and breaking changes).