Skip to content

Commit

Permalink
fix: wrong date #108
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikiki committed Oct 17, 2018
1 parent 21e5d11 commit babf273
Show file tree
Hide file tree
Showing 8 changed files with 3,216 additions and 1,205 deletions.
2 changes: 1 addition & 1 deletion demo/assets/js/bulma-calendar.min.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion demo/assets/js/main.js
Expand Up @@ -2,7 +2,10 @@ ready(function () {
bulmaCalendar.attach('#datepickerDemoInline');
bulmaCalendar.attach('#datepickerDemoInlineRange');

calendars = bulmaCalendar.attach('#datepickerDemoDefault');
calendars = bulmaCalendar.attach('#datepickerDemoDefault', {
dateFormat: 'DD/MM/YYYY',
clearButton: false
});
[].forEach.call(calendars, function (calendar) {
calendar.on('datepicker:date:selected', function (datePicker) {
alert('Selected date: ' + datePicker.date);
Expand All @@ -11,6 +14,7 @@ ready(function () {

bulmaCalendar.attach('#datepickerDemoDialog', {
displayMode: 'dialog',
dateFormat: 'D/M/YYYY',
startDate: new Date('02/11/2018'),
minDate: '01/01/2018',
maxDate: '12/31/2018',
Expand Down

0 comments on commit babf273

Please sign in to comment.