MWF.xApplication.process.FormDesigner.Module = MWF.xApplication.process.FormDesigner.Module || {}; MWF.xDesktop.requireApp("process.FormDesigner", "Module.Elinput", null, false); MWF.xApplication.process.FormDesigner.Module.Elautocomplete = MWF.FCElautocomplete = new Class({ Extends: MWF.FCElinput, Implements: [Options, Events], options: { "style": "default", "propertyPath": "../x_component_process_FormDesigner/Module/Elautocomplete/elautocomplete.html" }, _initModuleType: function(){ this.className = "Elautocomplete"; this.moduleType = "element"; this.moduleName = "elautocomplete"; }, _createElementHtml: function(){ //var html = ""; var html = ""; if (this.json.vueSlot) html += this.json.vueSlot; html += ""; return html; }, _createVueExtend: function(callback){ var _self = this; return { data: this._createVueData(), mounted: function(){ _self._afterMounted(this.$el, callback); }, methods: { "$fetchSuggestions": function(qs, cb){ debugger; if (this.json.itemType!=='script'){ if (this.json.itemValues){ cb(this.json.itemValues.map(function(v){ return {"value": v}; })); return; } } cb([]); }.bind(this) } }; } });