Columns resizing #54
Replies: 7 comments 3 replies
-
I think the example should be like import { applyChange } from 'react-datasheet-grid'
const [columns, setColumns] = useState([])
return (<DynamicDataSheet
columns={columns}
onColumnsChange={changes => setColumns(cols => applyChange(cols, changes))}
onColumnResize=(change => setColumns(cols => applyChange(cols, [change]))}
...
/>
)
I think the
how about |
Beta Was this translation helpful? Give feedback.
-
Here we can an example on how to resize columns https://htmldom.dev/resize-columns-of-a-table/ We can add create a resizer compononent and add it to the HeaderRow:
Now we need a method to change the property width of the column, I don't know if there is an already built in method to change it? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the contribution! This looks good. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, Have any updates on this feature? |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, |
Beta Was this translation helpful? Give feedback.
-
Hey guys, I have a draft PR #350 and would like to hear your opinions |
Beta Was this translation helpful? Give feedback.
-
Hello guys, any updates on this one? |
Beta Was this translation helpful? Give feedback.
-
API
A
resazableColumn: boolean
propBehavior
width: '0 0 <width>px'
, and no min and max-width)Questions
onColumnWidthChange
prop?Beta Was this translation helpful? Give feedback.
All reactions