Vue resizing
#4547
Replies: 2 comments 3 replies
-
Expressing my interest in this issue as well. Can't get the resize feature working with Vue. @lucatk is this caused due to the methods being non-reactive? because method calls such as |
Beta Was this translation helpful? Give feedback.
0 replies
-
<th
v-for="header in headerGroup.headers"
:key="header.id"
:colSpan="header.colSpan"
class="font-bold"
:style="{ width: header.getSize() + 'px' }"
> This example work for me. The resize handlers are a bit iffy, took me some time to figure that out. <div
@mousedown="header.getResizeHandler()?.($event)"
@touchstart="header.getResizeHandler()?.($event)"
> |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
First of all, I love the work on Table v8 and it works very good and performant even in Vue!
I have tried adapting the React Column Sizing example to work in Vue, however I can't get the sizing to work. Since the widths are accessed via a function on the table/cell, this does not get updated in Vue, because they are not reactive properties.
Has anyone found a solution for this? I tried to react to onStateChange, calling the getTotalSize in there and updating a ref, however I always end up with width:0px; on mount.
Beta Was this translation helpful? Give feedback.
All reactions