MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / createViewMarker

Function createViewMarker

codebase/sources/dhtmlxscheduler.js:102–120  ·  view source on GitHub ↗
(settings)

Source from the content-addressed store, hash-verified

100 return markerObject;
101 }
102 function createViewMarker(settings) {
103 const { layout } = settings;
104 let markerConfigs;
105 switch (layout) {
106 case "month":
107 markerConfigs = getMonthViewMarkers(settings);
108 break;
109 case "timeline":
110 case "units":
111 markerConfigs = getTimelineAndUnitsViewMarkers(settings);
112 break;
113 default:
114 markerConfigs = getColumnViewMarkers(settings);
115 break;
116 }
117 markerConfigs.forEach((cfg) => {
118 dndMarkers.push(scheduler2.markTimespan(cfg));
119 });
120 }
121 function getColumnViewMarkers(settings) {
122 const { event: event3, layout, viewName, sectionId } = settings;
123 let columnViewMarkersArray = [];

Callers 1

dragHighlightPosFunction · 0.70

Calls 4

getMonthViewMarkersFunction · 0.70
getColumnViewMarkersFunction · 0.70
markTimespanMethod · 0.65

Tested by

no test coverage detected