diff --git a/angular-ui b/angular-ui index 0eac4de..e67bbce 160000 --- a/angular-ui +++ b/angular-ui @@ -1 +1 @@ -Subproject commit 0eac4de11d8cd5d9777df43adaa74c1f3c91ec1c +Subproject commit e67bbce5ad3b3e924391530d3142ef7e8c83f1d9 diff --git a/index.html b/index.html index 4b140e8..97eb588 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - + @@ -16,6 +16,7 @@ + @@ -25,6 +26,7 @@ +
@@ -32,7 +34,7 @@Attach Angular objects to a calendar.
+For easy integration with scope objects.
++ {{e.title}} + x +
+
+<div ui-calendar="{height: 450,editable: true}" class="span8 calendar" ng-model="events"></div>
+
+function CalendarCtrl($scope) {
+ var date = new Date();
+ var d = date.getDate();
+ var m = date.getMonth();
+ var y = date.getFullYear();
+
+ $scope.events = [
+ {title: 'All Day Event',start: new Date(y, m, 1)},
+ {title: 'Long Event',start: new Date(y, m, d - 5),end: new Date(y, m, d - 2)},
+ {id: 999,title: 'Repeating Event',start: new Date(y, m, d - 3, 16, 0),allDay: false},
+ {id: 999,title: 'Repeating Event',start: new Date(y, m, d + 4, 16, 0),allDay: false},
+ {title: 'Birthday Party',start: new Date(y, m, d + 1, 19, 0),end: new Date(y, m, d + 1, 22, 30),allDay: false},
+ {title: 'Click for Google',start: new Date(y, m, 28),end: new Date(y, m, 29),url: 'http://google.com/'}
+ ]
+
+ $scope.addChild = function() {
+ $scope.events.push({
+ title: 'Open Sesame',
+ start: new Date(y, m, 28),
+ end: new Date(y, m, 29)
+ });
+ }
+
+ $scope.remove = function(index) {
+ $scope.events.splice(index,1);
+ }
+}
+
+ | " + opt('allDayText') + " | " + + "" +
+ " " +
+ " | " +
+ "" + + " |
|---|
| " + + ((!slotNormal || !minutes) ? formatDate(d, opt('axisFormat')) : ' ') + + " | " + + "" +
+ " | " +
+ "
|---|