Sha256: 7984dfeba2042ad97c2781fa9e52c6fe3197633859f2f1bc63e11284b4159a61
Contents?: true
Size: 1.11 KB
Versions: 3
Compression:
Stored size: 1.11 KB
Contents
let calendar; document.addEventListener('DOMContentLoaded', function() { // Initialisation du calendrier calendar = new tui.Calendar('#view', { defaultView: 'month', usageStatistics: false, month: { startDayOfWeek: 0, }, week: { showTimezoneCollapseButton: true, timezones: [{ timezoneOffset: 0, displayLabel: 'UTC', tooltip: 'UTC' }], }, }); // Ajouter un événement de démonstration calendar.createEvents([ { id: '1', calendarId: '1', title: 'Événement example', category: 'time', dueDateClass: '', start: '2023-08-20T10:30:00+00:00', end: '2023-08-20T12:30:00+00:00', }, ]); }); function changeCalendarView(view) { const validViews = ['day', 'week', 'month']; if (!validViews.includes(view)) { console.error(`Vue non valide: ${view}. Les vues valides sont: ${validViews.join(', ')}`); return; } calendar.changeView(view); } setTimeout(function() { changeCalendarView('day'); }, 3000);
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
atome-0.5.7.6.5 | vendor/assets/src/js/test.js |
atome-0.5.7.6.0 | vendor/assets/src/js/test.js |
atome-0.5.7.5.9 | vendor/assets/src/js/test.js |