Skip to content

Commit

Permalink
update main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
uvarov-frontend committed Dec 17, 2024
1 parent cdda7c8 commit 03c2c65
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions demo/pages/lang/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const options: Options = {
type: 'multiple',
selectionDatesMode: 'multiple-ranged',
disableDatesGaps: true,
// disableDatesPast: true,
disableDatesPast: true,
dateMin: '2021-02-01',
dateMax: '2025-11-30',
displayDatesOutside: false,
Expand Down Expand Up @@ -65,12 +65,11 @@ const options: Options = {
};

document.addEventListener('DOMContentLoaded', () => {
const calendar = new Calendar('#calendar', options);
const calendar = new Calendar('#calendar');
calendar.init();

// const btnSetEl = document.querySelector('#set-options');
// btnSetEl?.addEventListener('click', () => {
// calendar.set(options, { dates: false });
// console.log(calendar);
// });
const btnSetEl = document.querySelector('#set-options');
btnSetEl?.addEventListener('click', () => {
calendar.set(options, { dates: false });
});
});

0 comments on commit 03c2c65

Please sign in to comment.