@aleen42/calendar 1.0.0-beta.5 → 1.1.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/demo.html CHANGED
@@ -10,6 +10,7 @@
10
10
  var CM_LOCALE = new URLSearchParams(location.search).get('locale') ?? 'en_US'
11
11
  var CM_USER = {};
12
12
  var CF_USER = {isRtl : /^(ar|ug)$/.test(self.CM_LOCALE)};
13
+ var CF_SETTING = {paginationMaxPage : 1000};
13
14
  </script>
14
15
  <script src="./dist/calendar.js"></script>
15
16
  <link rel="stylesheet" href="./dist/iconfont.css" />
@@ -43,6 +44,11 @@
43
44
  </div>
44
45
  <div class=cal-content></div>
45
46
  <script>
47
+ const mockedCalendars = [
48
+ {fid : 1, name : 'My Calendars', colorName : ''},
49
+ {fid : 101, name : 'Custom Calendar', colorName : 'Red'},
50
+ ];
51
+
46
52
  initCalendar('MONTH');
47
53
 
48
54
  function initCalendar(viewType) {
@@ -50,6 +56,9 @@
50
56
  [$('.cal-content').attr('class', 'cal-content'), $('.cal-aside > .j-datepicker')],
51
57
  viewType,
52
58
  {
59
+ split : true,
60
+ calendars : mockedCalendars,
61
+ calendarPropId : 'fid',
53
62
  supportInvite : true,
54
63
  supportExceptions : true,
55
64
  load : (function (start, end, searchParams) {
@@ -77,7 +86,7 @@
77
86
  onToggleAside : function (display) {
78
87
  return localStorage.setItem('aside', display);
79
88
  },
80
- limit : 1,
89
+ limit : 10,
81
90
  }
82
91
  )
83
92
 
@@ -115,6 +124,7 @@
115
124
  allDayEvent : i > 3,
116
125
  isOrganizer : true,
117
126
  organizer : 'foo@bar.com',
127
+ labelName : 'label-name-' + id,
118
128
  name : 'name-' + id,
119
129
  location : '',
120
130
  id : id++,
@@ -123,6 +133,7 @@
123
133
  rangeExpired : isOutOfDate,
124
134
  checkCode : 0,
125
135
  sensitivity : 2,
136
+ calendarInfo : mockedCalendars[i % 2],
126
137
  })) : [];
127
138
  }
128
139
  </script>
Binary file