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

Function _prepareItemForForm

codebase/dhtmlxscheduler.es.js:2910–2917  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

2908 }
2909 return i[this.action_param] = t.getUserData(e.id, this.action_param), i;
2910}, _prepareItemForForm(e) {
2911 const i = {}, t = this.$scheduler, n = t.utils.copy(e);
2912 for (var s in n) {
2913 let a = n[s];
2914 s.indexOf("_") !== 0 && (a ? a.getUTCFullYear ? i[s] = t._helpers.formatDate(a) : i[s] = typeof a == "object" ? this._prepareItemForForm(a) : a : i[s] = "");
2915 }
2916 return i[this.action_param] = t.getUserData(e.id, this.action_param), i;
2917}, _prepareDataItem: function(e) {
2918 return this._serializeAsJson ? this._prepareItemForJson(e) : this._prepareItemForForm(e);
2919}, _getRowData: function(e) {
2920 var i = this.$scheduler.getEvent(e);

Callers

nothing calls this directly

Calls 2

copyMethod · 0.65
getUserDataMethod · 0.65

Tested by

no test coverage detected