Adding new grid type for resources

This commit is contained in:
Sean Kenny
2014-09-13 12:25:26 +01:00
parent 98a9b3e077
commit c134bc2d8c
6 changed files with 23 additions and 1 deletions
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+7
View File
@@ -0,0 +1,7 @@
/* Event-rendering methods for the TimeGrid class
----------------------------------------------------------------------------------------------------------------------*/
$.extend(ResourceTimeGrid.prototype, {
});
+13
View File
@@ -0,0 +1,13 @@
/* A component that renders one or more columns of vertical time slots
----------------------------------------------------------------------------------------------------------------------*/
function ResourceTimeGrid(view) {
TimeGrid.call(this, view); // call the super-constructor
}
ResourceTimeGrid.prototype = createObject(TimeGrid.prototype); // define the super-class
$.extend(ResourceTimeGrid.prototype, {
});
+1 -1
View File
@@ -45,7 +45,7 @@ function ResourceView(calendar) {
// overrides - the view.js should expose these on the prototype then we wouldn't have to do this.
this.cellToDate = ResourceView.prototype.cellToDate;
this.timeGrid = new TimeGrid(this);
this.timeGrid = new ResourceTimeGrid(this);
if (this.opt('allDaySlot')) { // should we display the "all-day" area?
this.dayGrid = new DayGrid(this); // the all-day subcomponent of this view
+2
View File
@@ -27,6 +27,8 @@
<script src='../src/common/DayGrid.limit.js'></script>
<script src='../src/common/TimeGrid.js'></script>
<script src='../src/common/TimeGrid.events.js'></script>
<script src='../src/resource/ResourceTimeGrid.js'></script>
<script src='../src/resource/ResourceTimeGrid.events.js'></script>
<script src='../src/common/View.js'></script>
<script src='../src/basic/BasicView.js'></script>
<script src='../src/basic/MonthView.js'></script>