This plugin is a composition of Kendo UI MultiSelect and kendo-multi-calendar.
This widget is designed for multiple dates selection from drop-down calendar the same way as drop-down list items are selected with MultiSelect. Demo
$ npm i kendo-multi-date-select
kendo-multi-date-select(.min).js script should be included in your project along with kendo-multi-calendar(.min).js and kendo-ui-core or kendo-ui.
$("#multiDateSelect").kendoMultiDateSelect({
// specify configuration and event handlers here
});
boolean
(default: true)
If true calendar will be closed on date selection.
Object
(default: {})
Options for calendar popup initialization.
Object | false
(default: {})
Options for calendar popup animation.
boolean
(default: true)
If false user input won't be allowed.
number
(default: null)
Defines the limit of selected items unless null.
boolean
(default: true)
If true - only today date will be selected after click on date in calendar footer,
otherwise - today date will be added to selected dates.
string
(default: '')
Placeholder for empty input.
string | ((data: Date) => string)
(default: '')
Template for rendering tags, if not specified 'format' option will be used to render tags.
string
(default: 'M/d/yyyy')
Defines format for parsing user input and displaying tags if 'tagTemplate' option is not specified.
Date[]
(default: null)
Initial selected dates.
string | false | ((data: Date) => string)
(default: '')
Template for rendering calendar footer.
string
(default: '')
Calendar culture ('en-US', 'de-DE', etc.).
Date
(default: new Date(1900, 0, 1))
Minimum date that can be selected.
Date
(default: new Date(2099, 11, 31))
Maximum date that can be selected.
string
(default: 'month')
Specifies calendar start view.
string
(default: 'month')
Specifies calendar navigation depth.
Object
(default: {})
Specifies calendar templates for the cells.
Date[]
(default: [])
Special calendar dates, which will be passed to month template.
() => void
Closes calendar popup.
() => void
Opens calendar popup.
() => void
Toggles calendar popup.
() => void
Destroys the widget with underlying calendar and multi-select widgets.
(enable: boolean) => void
Enables or disables multi-select.
(enable: boolean) => void
Changes multi-select 'readonly' state.
(min: Date) => Date
Gets/sets the min value of the calendar.
(max: Date) => Date
Gets/sets the max value of the calendar.
(values: Date[]) => Date[]
Gets/sets selected values.
() => MultiSelect
Gets underlying multi-select widget.
() => MultiCalendar
Gets underlying calendar widget.
Fires when calendar view is changed.
Fires when the selected dates are changed.
Fires when calendar popup opens.
Fires when calendar popup closes.
This module also contains type declarations.
// use 'reference' directive
/// <reference path="node_modules/kendo-multi-date-select/dist/kendo-multi-date-select.d.ts" />
// or add types to 'compilerOptions' in your tsconfig.json:
// ...
// "types": [ "kendo-multi-date-select" ],
// ...
const multiDateSelect = new kendoExt.MultiDateSelect('#multiDateSelect');