All Downloads are FREE. Search and download functionalities are using the official Maven repository.

root.libs.composum.nodes.commons.components.js.multiform.min.js Maven / Gradle / Ivy

There is a newer version: 4.3.4
Show newest version
(function(){CPM.namespace("core.components");(function(e,f,g){e.const=_.extend(e.const||{},{multiform:{css:{base:"multi-form-widget",current:"current",selector:{item:".multi-form-item",handle:".item-select",widget:".widget",richtext:".richtext-widget",actions:".action-bar",table:"_table"}},data:{name:"name"},pattern:{name:{widget:/(.+\/)?:name$/,replace:"(/([^/-]+)(-[^/]+)?/)?([^/]+)$"}}}});e.MultiFormItem=Backbone.View.extend({initialize:function(a){var b=e.const.multiform;f.setUp(this.el);this.$widgets=
this.$(b.css.selector.widget);var d=this;this.$widgets.each(function(){this.view&&(this.name=this.view.retrieveName())&&this.name.match(b.pattern.name.widget)&&(d.nameWidget=this.view)})},getValue:function(){var a={};this.$widgets.each(function(){if(this.view&&_.isFunction(this.view.getValue)){var b=g.getWidgetName(this.view);b&&"undefined"!==b&&(a[b]=this.view.getValue.apply(this.view))}});var b=_.values(a);1===b.length?a=b[0]:0==b.length&&(a=void 0);return a},setValue:function(a){this.$widgets.each(function(){if(this.view&&
_.isFunction(this.view.setValue)){var b=g.getWidgetName(this.view);this.view.setValue.apply(this.view,[_.isObject(a)?a[b]:a])}})},reset:function(){0a)a=1;for(;this.itemList.length>a;)this.remove();for(var b=0;b




© 2015 - 2025 Weber Informatics LLC | Privacy Policy