examples/bootstrap4/multiLineTag.js
authorleon <leon@roojs.com>
Thu, 2 Nov 2023 03:54:05 +0000 (11:54 +0800)
committerleon <leon@roojs.com>
Thu, 2 Nov 2023 03:54:05 +0000 (11:54 +0800)
roojs-bootstrap.js
roojs-bootstrap-debug.js

examples/bootstrap4/multiLineTag.js

index afd2b5f..5f84a02 100644 (file)
@@ -30,15 +30,27 @@ Roo.example.multiLineTag = new Roo.XComponent({
                                         {
                                             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 : 'TEST',
                                             listeners : {
                                                 render : function(_self) {
                                                     window.qwer = _self;
                                                 },
                                                 beforeload : function(_self, store, options) {
-                                                    Roo.log('BEFORE LOAD');
                                                     options.params = options.params || {};
                                                     options.params._clients = 1;
                                                 },