MWF.xApplication.process.FormDesigner.Module = MWF.xApplication.process.FormDesigner.Module || {};
MWF.xDesktop.requireApp("process.FormDesigner", "Module.Elinput", null, false);
MWF.xApplication.process.FormDesigner.Module.Elswitch = MWF.FCElswitch = new Class({
Extends: MWF.FCElinput,
Implements: [Options, Events],
options: {
"style": "default",
"propertyPath": "../x_component_process_FormDesigner/Module/Elswitch/elswitch.html"
},
_initModuleType: function(){
this.className = "Elswitch";
this.moduleType = "element";
this.moduleName = "elswitch";
},
_createElementHtml: function(){
//var html = "";
var html = "";
return html;
},
_createVueData: function(){
//var data = this.json;
return function(){
this.json[this.json.id] = true;
this.setElStyles();
return Object.assign(this.json, this.tmpVueData||{});
}.bind(this);
},
_setEditStyle_custom: function(name){
switch (name){
case "name": this.setPropertyName(); break;
case "id": this.setPropertyId(); break;
case "width":
this.json.width = this.json.width.toFloat();
if (this.isPropertyLoaded) if (this.vm) this.resetElement(); break;
default: ;
}
},
setPropertyName: function(){},
setPropertyId: function(){}
});