mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-08-16 11:21:04 +08:00
Adding new grid type for resources
This commit is contained in:
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
|
||||
/* Event-rendering methods for the TimeGrid class
|
||||
----------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
$.extend(ResourceTimeGrid.prototype, {
|
||||
|
||||
});
|
||||
@@ -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, {
|
||||
|
||||
});
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user