@easepick/lock-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

@easepick/lock-plugin

npm version

This package does not need to be installed if you are using @easepick/bundle.

Adds the ability to disable days for selection.

Documentation

https://easepick.com/packages/lock-plugin

Options

Name Type Default Description
minDate Date
string
number
null The minimum/earliest date that can be selected.
Date Object or Unix Timestamp (with milliseconds) or ISO String.
maxDate Date
string
number
null The maximum/latest date that can be selected.
Date Object or Unix Timestamp (with milliseconds) or ISO String.
minDays number null The minimum days of the selected range.
maxDays number null The maximum days of the selected range.
selectForward boolean false Select second date after the first selected date.
selectBackward boolean false Select second date before the first selected date.
presets boolean true Disable unallowed presets (when PresetPlugin is included).
inseparable boolean false Disable date range selection with locked days.
filter function null Lock days by custom function.

Readme

Keywords

none

Package Sidebar

Install

npm i @easepick/lock-plugin

Homepage

easepick.com

Weekly Downloads

10,865

Version

1.2.1

License

GPL-2.0-or-later

Unpacked Size

14.4 kB

Total Files

8

Last publish

Collaborators

  • waki