nhn / tui.grid

🍞🔡 The Powerful Component to Display and Edit Data. Experience the Ultimate Data Transformer!
http://ui.toast.com/tui-grid/
MIT License
2.4k stars 386 forks source link

question about paste from clipboard #1995

Open SeoSeung-ho opened 7 months ago

SeoSeung-ho commented 7 months ago

Summary

Hello. First of all, I would like to say thank you for making tui-grid. My questions are as follows:

Current situation when copy-paste 2 or more rows in tui-grid If it is the last row, the row is automatically appended and pasted.

Question

I know that this is an important and necessary feature.

However, I want to prevent users from registering additional data and only enable data modification.

However, I have no intention of blocking the copy function, so I want to keep it as it is, but the method to prevent it becomes complicated because the row is automatically added during paste.

Of course, I know that I can use updatedRows of getModifiedRow, but I can't use it in my situation.

So, is there a flag in the grid generation option or onPaste event where you choose whether to paste by adding and pasting some data according to the number of rows left at the moment?

Or do you have any plans to add?

Version @tui-grid v4.21.19