I’m having problems with the marking of events: Basically i get the events Start and End
var calendarInline = app.f7.calendar({
container: '#calendar-inline-container',
value: [new Date()],
weekHeader: false,
color: '#ff0000',
events: function () {
for (var i = 0; i < resp.data.length; i++) {
return [
{
from: new Date(resp.data[i].start),
to: new Date(resp.data[i].end),
}
]
}
},
toolbarTemplate:
'<div class="toolbar calendar-custom-toolbar">' +
'<div class="toolbar-inner">' +
'<div class="left">' +
'<a href="#" class="link icon-only"><i class="icon f7-icons jj-icon-color">left</i></a>' +
'</div>' +
'<div class="center"></div>' +
'<div class="right">' +
'<a href="#" class="link icon-only"><i class="icon f7-icons jj-icon-color">right</i></a>' +
'</div>' +
'</div>' +
'</div>',
onOpen: function (p) {
$$('.calendar-custom-toolbar .center').text(monthNames[p.currentMonth] + ', ' + p.currentYear);
$$('.calendar-custom-toolbar .left .link').on('click', function () {
calendarInline.prevMonth();
});
$$('.calendar-custom-toolbar .right .link').on('click', function () {
calendarInline.nextMonth();
});
},
onMonthYearChangeStart: function (p) {
$$('.calendar-custom-toolbar .center').text(monthNames[p.currentMonth] + ', ' + p.currentYear);
}
});
calendarInline.open()
But im getting all of the dates mark with Dot. What is wrong?