Add the possibility to set the maximum number of days.

This commit is contained in:
Michael Teeuw
2016-04-02 19:17:30 +02:00
parent 6f5c86775b
commit e38dd346d9
3 changed files with 17 additions and 10 deletions

View File

@@ -12,6 +12,7 @@ Module.register('calendar',{
// Define module defaults
defaults: {
maximumEntries: 10, // Total Maximum Entries
maximumNumberOfDays: 365,
displaySymbol: true,
defaultSymbol: 'calendar', // Fontawsome Symbol see http://fontawesome.io/cheatsheet/
maxTitleLength: 25,
@@ -180,6 +181,7 @@ Module.register('calendar',{
this.sendSocketNotification('ADD_CALENDAR', {
url: url,
maximumEntries: this.config.maximumEntries,
maximumNumberOfDays: this.config.maximumNumberOfDays,
fetchInterval: this.config.fetchInterval
});
},