first success with x-data-spreadsheet

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-03-18 22:55:42 +01:00
parent 22094e7ccc
commit d936c08d35
4 changed files with 720 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
<script>
import { onMount } from 'svelte';
import Spreadsheet from "x-data-spreadsheet";
function load(){
const s = new Spreadsheet("#example-table")
.loadData({}) // load data
.change(data => {
// save data to db
});
// data validation
s.validate()
}
onMount(load);
</script>
<div id="example-table"></div>