npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

kendo-multi-date-select

v2.0.13

Published

Kendo UI plugin for selecting multiple dates similar to MultiSelect.

Downloads

64

Readme

kendo-multi-date-select

npm version Build Status codecov Dependency Status devDependency Status typings included npm

Build Status

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

Installation

$ 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.

Usage

$("#multiDateSelect").kendoMultiDateSelect({
    // specify configuration and event handlers here
});

Reference

Configuration


autoClose

boolean (default: true)If true calendar will be closed on date selection.

popup

Object (default: {})Options for calendar popup initialization.

animation

Object | false (default: {})Options for calendar popup animation.

enable

boolean (default: true)If false user input won't be allowed.

maxSelectedItems

number (default: null)Defines the limit of selected items unless null.

cleanSelectedItemsOnTodayClick

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.

placeholder

string (default: '')Placeholder for empty input.

tagTemplate

string | ((data: Date) => string) (default: '')Template for rendering tags, if not specified 'format' option will be used to render tags.

format

string (default: 'M/d/yyyy')Defines format for parsing user input and displaying tags if 'tagTemplate' option is not specified.

values

Date[] (default: null)Initial selected dates.

footer

string | false | ((data: Date) => string) (default: '')Template for rendering calendar footer.

culture

string (default: '')Calendar culture ('en-US', 'de-DE', etc.).

min

Date (default: new Date(1900, 0, 1))Minimum date that can be selected.

max

Date (default: new Date(2099, 11, 31))Maximum date that can be selected.

start

string (default: 'month')Specifies calendar start view.

depth

string (default: 'month')Specifies calendar navigation depth.

month

Object (default: {})Specifies calendar templates for the cells.

dates

Date[] (default: [])Special calendar dates, which will be passed to month template.

Methods


close

() => voidCloses calendar popup.

open

() => voidOpens calendar popup.

toggle

() => voidToggles calendar popup.

destroy

() => voidDestroys the widget with underlying calendar and multi-select widgets.

enable

(enable: boolean) => voidEnables or disables multi-select.

readonly

(enable: boolean) => voidChanges multi-select 'readonly' state.

min

(min: Date) => DateGets/sets the min value of the calendar.

max

(max: Date) => DateGets/sets the max value of the calendar.

values

(values: Date[]) => Date[]Gets/sets selected values.

multiSelect

() => MultiSelectGets underlying multi-select widget.

multiCalendar

() => MultiCalendarGets underlying calendar widget.

Events


navigate

Fires when calendar view is changed.

change

Fires when the selected dates are changed.

open

Fires when calendar popup opens.

close

Fires when calendar popup closes.

Typescript

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');