Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.
/ light-datepicker Public archive

Ultra light and minimalist Datepicker with zero dependencies.

License

Notifications You must be signed in to change notification settings

evangilo/light-datepicker

Repository files navigation

Light Datepicker

Ultra light and minimalist Datepicker with zero dependencies.

Preview

Screenshot

Install

npm install light-datepicker --save

Basic Usage

// HTML
<link rel="stylesheet" type="text/css" href="node_modules/light-datepicker/dist/datepicker.min.css">

<script src="node_modules/light-datepicker/dist/datepicker.min.js"></script>
// Javascript
const single = new datepicker.DatePicker({ selector: '#datepicker' });

const range = new datepicker.DatePickerRange({
    leftSelector: '#left-datepicker',
    rightSelector: '#right-datepicker',
});

single.calendar.on('clickDate', event => console.log('single:date', event.detail));
range.leftDatePicker.calendar.on('clickDate', event => console.log('left:date', event.detail));
range.rightDatePicker.calendar.on('clickDate', event => console.log('right:date', event.detail));

Run Example

git clone https://github.com/evangilo/light-datepicker.git

npm install

npm start

Open url in your browser: http://localhost:8080/example/

License Light Datepicker is released under the MIT License. See LICENSE file for details.

Browser Support

@TODO

About

Ultra light and minimalist Datepicker with zero dependencies.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published