Roo/bootstrap/form/MultiLineTag.js
authorleon <leon@roojs.com>
Wed, 1 Nov 2023 08:43:14 +0000 (16:43 +0800)
committerleon <leon@roojs.com>
Wed, 1 Nov 2023 08:43:14 +0000 (16:43 +0800)
roojs-bootstrap.js
roojs-bootstrap-debug.js

Roo/bootstrap/form/MultiLineTag.js
roojs-bootstrap-debug.js
roojs-bootstrap.js

index 6c3c946..adc44b7 100644 (file)
@@ -23,7 +23,7 @@ Roo.bootstrap.form.MultiLineTag = function(config){
 
 Roo.extend(Roo.bootstrap.form.MultiLineTag, Roo.bootstrap.form.Input,  {
     tagRows : [],
-    minimumRow : 2,
+    minimumRow : 5,
 
     // for combo box
     displayField : 'name',
index bd15f91..ee50812 100644 (file)
@@ -14777,7 +14777,7 @@ Roo.bootstrap.form.MultiLineTag = function(config){
 
 Roo.extend(Roo.bootstrap.form.MultiLineTag, Roo.bootstrap.form.Input,  {
     tagRows : [],
-    minimumRow : 2,
+    minimumRow : 5,
 
     // for combo box
     displayField : 'name',
index 8698a0e..c7a50c9 100644 (file)
@@ -627,7 +627,7 @@ return;}var _t=this;var C=new FileReader();C.addEventListener("load",function(){
 this.updateInput();},reset:function(){this.fileCollection.each(function(A){if(A.el.dom&&A.el.dom.parentNode){A.el.dom.parentNode.removeChild(A.el.dom);}});this.fileCollection.clear();this.updateInput();},updateInput:function(){var A=[];this.fileCollection.each(function(e){A.push(e.data);
 });this.inputEl().dom.value=JSON.stringify(A);}});Roo.bootstrap.form.CardUploader.ID=-1;
 // Roo/bootstrap/form/MultiLineTag.js
-Roo.bootstrap.form.MultiLineTag=function(A){Roo.bootstrap.form.MultiLineTag.superclass.constructor.call(this,A);this.addEvents({beforeload:true});};Roo.extend(Roo.bootstrap.form.MultiLineTag,Roo.bootstrap.form.Input,{tagRows:[],minimumRow:2,displayField:'name',valueField:'name',placeholder:'Corporate, CSR, ESG Product',queryParam:'query[name]',listWidth:300,url:'http://localhost/web.MediaOutreach.publisher/index.local.php/Roo/Core_company',fields:[{'name':'id','type':'int'}
+Roo.bootstrap.form.MultiLineTag=function(A){Roo.bootstrap.form.MultiLineTag.superclass.constructor.call(this,A);this.addEvents({beforeload:true});};Roo.extend(Roo.bootstrap.form.MultiLineTag,Roo.bootstrap.form.Input,{tagRows:[],minimumRow:5,displayField:'name',valueField:'name',placeholder:'Corporate, CSR, ESG Product',queryParam:'query[name]',listWidth:300,url:'http://localhost/web.MediaOutreach.publisher/index.local.php/Roo/Core_company',fields:[{'name':'id','type':'int'}
 ,{'name':'name','type':'string'}],getAutoCreate:function(){var A={cls:'roo-multi-line-tag'};return A;},initEvents:function(){this.tagRows=[];for(var i=0;i<this.minimumRow;i++){this.addTagRow();}},addTagRow:function(){var A=this;var B=Roo.factory({xns:Roo.bootstrap.form,xtype:'ComboBox',editable:true,triggerAction:'all',minChars:2,displayField:A.displayField,valueField:A.valueField,listWidth:A.listWidth,placeholder:A.placeholder,queryParam:A.queryParam,store:{xns:Roo.data,xtype:'Store',listeners:{beforeload:function(E,F){A.fireEvent('beforeload',A,E,F);
 }},proxy:{xns:Roo.data,xtype:'HttpProxy',method:'GET',url:A.url},reader:{xns:Roo.data,xtype:'JsonReader',fields:A.fields}},listeners:{'render':function(E){E.inputEl().on('keyup',function(e){if(A.shouldAutoAddTagRow()){A.addTagRow();}});E.inputEl().on('change',function(e){A.fireEvent('change',A,A.getValue(),false);
 });},'select':function(E,F,G){A.fireEvent('change',A,A.getValue(),false);}}});var C=Roo.factory({xns:Roo.bootstrap,xtype:'Button',html:'-'});var D={xns:Roo.bootstrap,xtype:'Row',items:[B,C],listeners:{'render':function(E){this.inputCb=B;this.removeBtn=C;this.removeBtn.on('click',function(){A.removeTagRow(E);