Calendar
PIGNOSE Calendar is beautiful and eidetic jQuery date picker plguin.
<div class="calendar"></div>
$(function() {
$('.calendar').pignoseCalendar();
});
Modal
You can display calendar by modal popup.
Open Modal
<a href="#" class="calendar"></a>
$(function() {
$('a.calendar').pignoseCalendar({
format: 'YYYY-MM-DD' // date format string. (2017-02-02)
});
});
Dark theme support
Dark theme type supports, And we have a plan to add other themes.
<div class="calendar"></div>
$(function() {
$('.calendar').pignoseCalendar({
theme: 'dark' // light, dark
});
});
Multiple range Calendar
PIGNOSE Calendar supports multiple range picker.
<div class="calendar"></div>
$(function() {
$('.calendar').pignoseCalendar({
multiple: true
});
});
Toggle Calendar
You can toggle date and get those dates as array.
<div class="calendar"></div>
$(function() {
$('.calendar').pignoseCalendar({
toggle: true,
select: function(dates, obj) {
console.log('toggle active dates', obj.storage.activeDates);
}
});
});
Disabled Dates Calendar
You can turn off the specific dates.
You turned off dates below [random]
<div class="calendar"></div>
$(function() {
$('.calendar').pignoseCalendar({
disabledDates: [
'2017-01-01',
'2017-06-01',
'2017-06-02'
]
});
});
Disabled Weekdays Calendar
You can disable dates by specific weekday numbers (0 ~ 6, 0 is sunday).
<div class="calendar"></div>
$(function() {
$('.calendar').pignoseCalendar({
disabledWeekdays: [0, 6] // SUN (0), SAT (6)
});
});
Disabled Range Calendar
You can give disabled range(minimum, maximum) by date string(YYYY-MM-DD).
<div class="calendar"></div>
$(function() {
$('.calendar').pignoseCalendar({
minDate: '2017-04-01',
maxDate: '2017-06-24'
});
});
Disabled Multiple Ranges Calendar
Advanced - You can give multiple disabled date ranges by string(YYYY-MM-DD).
<div class="calendar"></div>
$(function() {
$('.calendar').pignoseCalendar({
disabledRanges: [
['2016-10-05', '2016-10-21'],
['2016-11-01', '2016-11-07'],
['2016-11-19', '2016-11-21'],
['2016-12-05', '2016-12-08'],
['2016-12-17', '2016-12-18'],
['2016-12-29', '2016-12-30'],
['2017-01-10', '2017-01-20'],
['2017-02-10', '2017-04-11'],
['2017-07-04', '2017-07-09'],
['2017-12-01', '2017-12-25'],
['2018-02-10', '2018-02-26'],
['2018-05-10', '2018-09-17'],
]
});
});
Multiple Weeks Calendar
Advanced - You can turn on/off weeks date range by clicking.
<div class="calendar"></div>
$(function() {
$('.calendar').pignoseCalendar({
pickWeeks: true,
multiple: true,
});
});
Dependency
This plugin has dependencies some javascript library.
Check belows and import it.
- jQuery core library
- Moment library
bower
If you use bower.
bower install pg-calendar