Skip to main content

history

Enables local undo/redo history for event additions, updates, moves, and deletions. With the default toolbar, enabling this prop also adds Undo and Redo controls. External data replacement clears history. Pro only.

PRO

The functionality is available in PRO Edition only

Usage

history?: boolean;

Default: false.

Example

<script setup lang="ts">
import { Calendar } from "@svar-ui/vue-calendar";
</script>

<template>
<Calendar :events="events" :date="date" :history="true" />
</template>
  • Undo and Redo — how history tracking, coalescing, and the toolbar controls work.
  • undo / redo — the actions that restore tracked snapshots.