-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
-
Is there a way to prevent resizer from going beyond the column's size limit if I'm using onEnd? I tried to limit deltaOffset but I couldn't find a way to understand what kind of column size I would end up with after the resize is applied. My idea was to use something like min(deltaOffset, maxSize - currentSize), but I could not find an API to access column's max size, am I missing something?
That's what I'm talking about, I'm trying to prevent resizer from being moved too far from max size
<div
@dblclick="() => header.column.resetSize()"
@mousedown="(e) => header.getResizeHandler()(e)"
@touchstart="(e) => header.getResizeHandler()(e)"
:style="{
position: 'absolute',
right: 0,
top: 0,
bottom: 0,
zIndex: 10,
width: '6px',
height: '100%',
backgroundColor: 'red',
transform: header.column.getIsResizing() ? `translateX(${table.getState().columnSizingInfo.deltaOffset}px)` : '',
}"
></div>
```
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment