X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=examples%2Fbootstrap4%2FmultiLineTag.js;fp=examples%2Fbootstrap4%2FmultiLineTag.js;h=78ec7e2dc9b50114cb0b5599d73616661b01f522;hb=994db46c32477291f6a1a32a2a42da54f315d011;hp=0000000000000000000000000000000000000000;hpb=96ea4b4eec841ccb85d4725c9cc950181dd3fc97;p=roojs1 diff --git a/examples/bootstrap4/multiLineTag.js b/examples/bootstrap4/multiLineTag.js new file mode 100644 index 0000000000..78ec7e2dc9 --- /dev/null +++ b/examples/bootstrap4/multiLineTag.js @@ -0,0 +1,73 @@ +Roo.example = Roo.example || {}; + +Roo.example.multiLineTag = new Roo.XComponent({ + part : ["example","multiLineTag"], + order : '001-viewpanel', + region : '', + parent : false, + name : "unnamed module", + disabled : false, + permname : '', + _tree : function() + { + + return { + xtype: 'Body', + xns: Roo.bootstrap, + items : [ + { + xtype: 'Container', + xns: Roo.bootstrap, + items : [ + { + xtype: 'Row', + xns: Roo.bootstrap, + items : [ + { + xtype: 'Form', + xns: Roo.bootstrap, + items : [ + { + xtype: 'MultiLineTag', + xns: Roo.bootstrap.form, + displayField : 'name', + valueField : 'name', + placeholder : 'Corporate, CSR, ESG Product', + queryParam : 'query[name]', + url : 'http://localhost/web.MediaOutreach.publisher/index.local.php/Roo/Core_company', + fields : [ + { + 'name' : 'id', + 'type' : 'int' + }, + { + 'name' : 'name', + 'type' : 'string' + } + ], + fieldLabel : 'Type of news:
(PR Campaign Intelligence)', + labelWidth : 0, + listeners : { + render : function(_self) { + window.qwer = _self; + }, + beforeload : function(_self, store, options) { + options.params = options.params || {}; + options.params._clients = 1; + }, + change : function(_self, newValue, oldValue) { + Roo.log(_self.getValue()); + } + } + } + ] + } + ] + } + ] + }, + + ] + }; + } +}); \ No newline at end of file