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

Protection against unexpected loss of modifications #8

Open muonw opened 1 year ago

muonw commented 1 year ago

Is your feature request related to a problem? Please describe. By default, edits are performed locally. Therefore, actions such as leaving the page or reloading the datasets will discard the edits.

Describe the solution you'd like Asking for user's confirmation of such actions can avoid unexpected loss of changes. Additionally, a mechanism can be implemented to allow reading and setting the state of edits (whether a change is saved or not) programmatically.