I use several calendars, want it were all in one module, but that each could set maximumEntries and / or maximumNumberOfDays
Now my config looks like this:
{
module: 'calendar',
header: 'Nadchodzące święta',
position: 'top_left',
config: {
maximumEntries: 2,
fadePoint: 0.25,
calendars: [
{
symbol: 'calendar-o ',
url: 'webcal://www.mozilla.org/media/caldata/PolishHolidays.ics'
}
]
}
},
{
module: 'calendar',
header: 'Google Calendar',
position: 'top_left',
config: {
maximumNumberOfDays: 7,
calendars: [
{
symbol: 'calendar-o',
url: 'https://calendar.google.com/calendar/ical/XXXXXXXXXXX/basic.ics'
}
]
}
},
{
module: 'calendar',
header: 'Facebook Calendar',
position: 'top_left',
config: {
maximumNumberOfDays: 2,
fadePoint: 0.75,
calendars: [
{
symbol: 'calendar-o',
url: 'webcal://www.facebook.com/ical/u.php?uid=XXXXXXXXX'
},
{
symbol: 'birthday-cake',
url: 'webcal://www.facebook.com/ical/b.php?uid=XXXXXXXXX'
}
]
}
},
And i want:
{
module: 'calendar',
header: 'Kalendarz',
position: 'top_left',
config: {
maximumEntries: 10,
calendars: [
{
symbol: 'calendar-o ',
maximumEntries: 2,
maximumNumberOfDays: 21,
url: 'webcal://www.mozilla.org/media/caldata/PolishHolidays.ics'
},
{
symbol: 'calendar-o',
maximumNumberOfDays: 7,
url: 'https://calendar.google.com/calendar/ical/XXXXXXXXXXX/basic.ics'
},
{
maximumNumberOfDays: 2,
symbol: 'calendar-o',
url: 'webcal://www.facebook.com/ical/u.php?uid=XXXXXXXXX'
},
{
maximumNumberOfDays: 2,
symbol: 'birthday-cake',
url: 'webcal://www.facebook.com/ical/b.php?uid=XXXXXXXXX'
}
]
}
},