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

Inline-Editing: Use a dataComponent for editing cells? #29

Open mavcook opened 1 year ago

mavcook commented 1 year ago

Problem When using the inline editing features, all cells default to a <textarea>.

Currently there is a dataComponent option for rendering a cell, but not editing a cell.

Motivation / Goals I would like to be able to customize the experience of editing certain cells to allow for different inputs, such as a selection menu.

Discussion Would this functionality be reasonable to add, or is there a way to accomplish this with the current feature set? If there is not a way to currently accomplish this, I am happy to take a stab at implementing it.

muonw-public commented 1 year ago

I think that's a great idea and would be very useful! The current version doesn't have this functionality.

mavcook commented 1 year ago

Ok awesome I will take a stab at adding this.