-
Notifications
You must be signed in to change notification settings - Fork 25
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
How about if the table gets resized ? #3
Comments
After a bit of messing with the code I ended up rewriting it so it matches my requirements a bit closer. I am posting it here because it relates to the issue above and you might use some of the ideas in your package. The biggest compromise I made was that I limited the resize handle to the header. I add the handle to the th elements. I can live with it like that : ) I needed the following.
In retrospect it should possibly be a component instead of a custom directive but hey ...
|
Thank you for posting this. I have the same use case. When using your above code, the resize only appears on the last column. I am using your code + https://github.com/SortableJS/Vue.Draggable/blob/master/example/components/table-column-example.vue so that the columns can be re-ordered. Do you have any thoughts why the only TH that is resizable is the last one? |
Fixed it! I needed to add |
Thx so much @turigeza and @astanley86 for posting these things here! Actually I would love to re-use your solution, however I have some trouble to make it work (I pasted into |
Actually I wonder whether this could be contributed back upstream into https://github.com/vuetifyjs/vuetify/tree/master/packages/vuetify/src/components/VDataTable or so? |
@astanley86 with a bit of debugging & fixes I actually got to exactly your question:
However I do not understand your answer
Which elements do you refer to exactly? The table? |
nevermind @astanley86 @turigeza I realized this was abt the table header elements |
While I like how simple it is : )
If the orientation of the device changes or the window size changes with it the table size changes too and the columns-resize-bar(s) will be out of position.
Also it is not possible to programatically apply a column size for the same reason.
Column order changes also not possible for the same reason.
The text was updated successfully, but these errors were encountered: