autoSave
Sets when edits are committed. When true, each validated change saves at once and fires onsave. When false, changes stay pending until a toolbar item with id: "save" runs - by default the Save button in the editor's toolbar.
Usage
autoSave?: boolean;
Default: false on Editor, true on Form (which has no save toolbar of its own).
Example
<script>
import { Editor, Willow } from "@svar-ui/svelte-editor";
const items = [{ comp: "text", key: "name", label: "Name" }];
const values = { name: "John Doe" };
</script>
<Willow>
<Editor {items} {values} autoSave onsave={({ changes, values }) => console.log(changes, values)} />
</Willow>