1
0
mirror of https://github.com/tabler/tabler.git synced 2026-08-01 16:04:37 +04:00
Files
tabler/pages/_includes/ui/fullcalendar.html
T
2019-10-28 23:12:11 +01:00

17 lines
674 B
HTML

{% assign calendar-id = include.calendar-id | default: 'main' %}
<div id="calendar-{{ calendar-id }}"></div>
{% capture_global scripts %}
<script>
document.addEventListener('DOMContentLoaded', function () {
{% if jekyll.environment == 'development' %}window.tabler_calendar = window.tabler_calendar || {};{% endif %}
var calendarEl = document.getElementById('calendar-{{ calendar-id }}');
window.FullCalendar && ({% if jekyll.environment == 'development' %}window.tabler_calendar["calendar-{{ calendar-id }}"] = {% endif %}new FullCalendar.Calendar(calendarEl, {
plugins: ['dayGrid']
})).render();
});
</script>
{% endcapture_global %}