muonw / muonw-powertable

▦ PowerTable is a Svelte component that turns JSON data into an interactive HTML table. Inspired by DataTables. Powered by Svelte.
https://muonw.github.io/muonw-powertable/
Other
218 stars 13 forks source link

Edit single cell #20

Open powellnorma opened 1 year ago

powellnorma commented 1 year ago

Hi there, I think it would be nice if one could trigger the "inline edit form" by just clicking on a specific cell. And perhaps after the change is done a user provided onCellEdit(row, key, newValue) callback gets called. What do you think?

muonw-public commented 1 year ago

Thank you for the suggestion. I think what you are describing is similar to how DataTables does it: https://editor.datatables.net/examples/inline-editing/simple

That might make editing more convenient depending on the use case. However there are challenges to overcome for a proper implementation: