Skip to main content

Calendar API Overview

Initialization

<script>
import { Calendar } from "wx-svelte-core";
</script>

<!-- minimal configuration for initialization -->
<!-- a calendar will show the current date -->
<Calendar />
tip
  • Visit the Features Guide to learn more about the control's functionality.
  • Explore the samples to visualize the available features.

Calendar Properties

buttonsshows/hides the Today and Clear buttons in the lower part of Calendar
currentdisplays the currently visible date in a calendar
markershighlights a specified date range in Calendar
valuesets the value of a calendar

Calendar Events

changefires when a new date is selected in a calendar