UI Widgets Calendar

A calendar widget.

Included in: dx.phonejs.js, dx.webappjs.js, dx.all.js

The dxCalendar widget displays the date on a calendar and enables a user to select the required date.

This widget, like any other DevExtreme UI widget, can be created using one of three possible approaches: jQuery, Knockout or AngularJS. The following code demonstrates how to create the dxCalendar widget using the Knockout approach.

HTML
<div data-bind="dxCalendar: { value: calendarValue }"></div>

The current widget value is specified from the value option. Declare an observable variable and pass it to the value option to update the variable each time the widget value changes.

JavaScript
var calendarValue = ko.observable(new Date());
See Also
  • To learn how to create widgets in detail, refer to the Create a Widget article.
  • The dxCalendar widget is related to the Editors category. So read an overview of the features that are common for editors in the Common Tasks topic of the Editors article.

Watch Video

Show Example:
jQuery
<div data-bind="dxCalendar:{}"></div>

Configuration

An object defining configuration options for the dxCalendar widget.

Methods

This section describes methods that can be used to manipulate a widget.

Events

This section describes events fired by this component.