Copy/Paste functionality in ItwinUI like Excell #1527
Replies: 2 comments 1 reply
|
Hi @sahil726433! This is a great question. Building spreadsheet-like interactions in web applications can be tricky. Currently, the native iTwinUI Table component is heavily optimized for data presentation, filtering, and selection, but it does not have built-in support for complex, multi-cell Excel-like clipboard operations (Ctrl+C / Win+C and Win+V across a grid). To achieve exactly what you need, here is the standard approach:
react-data-grid ag-Grid (Community or Enterprise) handsontable
// Concept for catching paste events // Excel data is typically tab-separated (\t) and newline-separated (\n) // Now map 'rows' to your state that feeds the iTwinUI Table data prop (PS: If this solves your issue, please consider marking this as the Answer so it can help others in the future! 🚀) |
|
Please use https://github.com/iTwin/iTwinUI repository for questions related to https://itwinui.bentley.com/docs/table |
Uh oh!
There was an error while loading. Please reload this page.
Is there any way in ITwinUI provided components, where I can have functionality of copy paste like excel.
Either in ITwiUi table or some other package like react-spreadsheet.
Requirements :-
All reactions