MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / extend$n

Function extend$n

codebase/sources/dhtmlxscheduler.js:1568–1599  ·  view source on GitHub ↗
(scheduler2)

Source from the content-addressed store, hash-verified

1566 };
1567 }
1568 function extend$n(scheduler2) {
1569 var commonViews = { agenda: "https://docs.dhtmlx.com/scheduler/agenda_view.html", grid: "https://docs.dhtmlx.com/scheduler/grid_view.html", map: "https://docs.dhtmlx.com/scheduler/map_view.html", unit: "https://docs.dhtmlx.com/scheduler/units_view.html", timeline: "https://docs.dhtmlx.com/scheduler/timeline_view.html", week_agenda: "https://docs.dhtmlx.com/scheduler/weekagenda_view.html", year: "https://docs.dhtmlx.com/scheduler/year_view.html", anythingElse: "https://docs.dhtmlx.com/scheduler/views.html" };
1570 var requiredExtensions = { agenda: "scheduler.plugins({ agenda_view: true })", grid: "scheduler.plugins({ grid_view: true })", map: "scheduler.plugins({ map_view: true })", unit: "scheduler.plugins({ units: true })", timeline: "scheduler.plugins({ timeline: true, treetimeline: true, daytimeline: true})", week_agenda: "scheduler.plugins({ week_agenda: true })", year: "scheduler.plugins({ year_view: true })", limit: "scheduler.plugins({ limit: true })" };
1571 scheduler2._commonErrorMessages = { unknownView: function(view) {
1572 var relatedDoc = "Related docs: " + (commonViews[view] || commonViews.anythingElse);
1573 var relatedExtension = requiredExtensions[view] ? "You're probably missing " + requiredExtensions[view] + "." : "";
1574 return "`" + view + "` view is not defined. \nPlease check parameters you pass to `scheduler.init` or `scheduler.setCurrentView` in your code and ensure you've imported appropriate extensions. \n" + relatedDoc + "\n" + (relatedExtension ? relatedExtension + "\n" : "");
1575 }, collapsedContainer: function(div) {
1576 return "Scheduler container height is set to *100%* but the rendered height is zero and the scheduler is not visible. \nMake sure that the container has some initial height or use different units. For example:\n<div id='scheduler_here' class='dhx_cal_container' style='width:100%; height:600px;'> \n";
1577 } };
1578 scheduler2.createTimelineView = function() {
1579 throw new Error("scheduler.createTimelineView is not implemented. Be sure to add the required extension: " + requiredExtensions.timeline + "\nRelated docs: " + commonViews.timeline);
1580 };
1581 scheduler2.createUnitsView = function() {
1582 throw new Error("scheduler.createUnitsView is not implemented. Be sure to add the required extension: " + requiredExtensions.unit + "\nRelated docs: " + commonViews.unit);
1583 };
1584 scheduler2.createGridView = function() {
1585 throw new Error("scheduler.createGridView is not implemented. Be sure to add the required extension: " + requiredExtensions.grid + "\nRelated docs: " + commonViews.grid);
1586 };
1587 scheduler2.addMarkedTimespan = function() {
1588 throw new Error("scheduler.addMarkedTimespan is not implemented. Be sure to add the required extension: scheduler.plugins({ limit: true })\nRelated docs: https://docs.dhtmlx.com/scheduler/limits.html");
1589 };
1590 scheduler2.renderCalendar = function() {
1591 throw new Error("scheduler.renderCalendar is not implemented. Be sure to add the required extension: scheduler.plugins({ minical: true })\nhttps://docs.dhtmlx.com/scheduler/minicalendar.html");
1592 };
1593 scheduler2.exportToPNG = function() {
1594 throw new Error(["scheduler.exportToPNG is not implemented.", "This feature requires an additional module, be sure to check the related doc here https://docs.dhtmlx.com/scheduler/png.html", "Licensing info: https://dhtmlx.com/docs/products/dhtmlxScheduler/export.shtml"].join("\n"));
1595 };
1596 scheduler2.exportToPDF = function() {
1597 throw new Error(["scheduler.exportToPDF is not implemented.", "This feature requires an additional module, be sure to check the related doc here https://docs.dhtmlx.com/scheduler/pdf.html", "Licensing info: https://dhtmlx.com/docs/products/dhtmlxScheduler/export.shtml"].join("\n"));
1598 };
1599 }
1600 function extend$m(scheduler2) {
1601 scheduler2.attachEvent("onSchedulerReady", function() {
1602 if (typeof dhtmlxError !== "undefined") {

Callers 1

factoryMethodFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected