# Overview
A modern, lightweight date picker with day, month, and year view modes. Fork of the original easepick (opens new window).
Originally created by Rinat G. (easepick). Forked and maintained by YuaFox (opens new window).
# What's New in easepick2
# viewMode Option
easepick2 adds support for month and year view modes in addition to the standard day picker:
| Value | Description |
|---|---|
'day' | Default. Standard day-level calendar view. |
'month' | Shows a 4×3 grid of months. Header navigates by year. |
'year' | Shows a 4×3 grid of years. Header navigates by decade. |
All existing plugins (RangePlugin, LockPlugin, AmpPlugin, etc.) work with all view modes.
# Features
- No dependencies
- Uses Shadow DOM (opens new window)
- Supports plugins
- Day, month, and year view modes
# Browser compatibility
| Chrome | Firefox | Safari | Edge |
|---|---|---|---|
| 53+ | 63+ | 10+ | 79+ |
# Packages
# Bundle
| Name | Description |
|---|---|
| @yuafox/easepick2 | Bundle of easepick2. Includes all packages. An easy way to use all the features. |
# Core
| Name | Description |
|---|---|
| @yuafox/easepick2-core | Main package of easepick2. |
| @yuafox/easepick2-datetime | DateTime package. |
| @yuafox/easepick2-base-plugin | Base plugin. Required for other plugins and for development. |
# Plugins
| Name | Description |
|---|---|
| @yuafox/easepick2-amp-plugin | Amp plugin. Adds extra options. |
| @yuafox/easepick2-kbd-plugin | Keyboard plugin. Adds keyboard navigation. |
| @yuafox/easepick2-lock-plugin | Lock plugin. Adds the ability to disable days/months/years for selection. |
| @yuafox/easepick2-preset-plugin | Preset plugin. Adds predefined ranges. |
| @yuafox/easepick2-range-plugin | Range plugin. Adds the ability to select a range of dates/months/years. |
| @yuafox/easepick2-time-plugin | Time plugin. Adds time picker. |
# License
Licensed under the terms of GNU General Public License Version 2 or later (opens new window).
Originally created by Rinat G. (opens new window) Forked and maintained by YuaFox (opens new window).