undo
Description
Optional. Enables executing the undo and redo actionsUsage
undo?: boolean;
Parameters
true- allows executing theundoandredoactionsfalse(default) - the ability to call theundoandredoactions is disabled
Example
<script>
import { getData } from "./common/data";
import { Gantt } from "@svar/svelte-gantt";
const { tasks } = getData();
</script>
<Gantt {tasks} undo />