fix example
authorAlan Knowles <alan@roojs.com>
Wed, 25 Nov 2020 09:49:41 +0000 (17:49 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 25 Nov 2020 09:49:41 +0000 (17:49 +0800)
examples/bootstrap/dashboard4.bjs
examples/bootstrap/dashboard4.js

index dcbc22e..b63815e 100644 (file)
@@ -9,7 +9,6 @@
   "098f6bcd4621d373cade4e832627b4f6" : "test",
   "e93b3fa481be3932aa08bd68c3deee70" : "example 1",
   "60ee66eb2cd31823032664c2e9a79fd5" : "body goes here",
-  "9cf863d802aca813531ca28b319ead90" : "Add Issue",
   "fb66f41b81f5973740bbfed019aa5d7d" : "Upload Images or Documents",
   "d9fb0367346d21079a1c52d72da61c9f" : "ticket 1"
  },
            "$ xns" : "Roo.bootstrap",
            "String html" : "body goes here",
            "bool dragable" : true
-          },
-          {
-           "String weight" : "primary",
-           "xtype" : "Button",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "Add Issue"
           }
          ]
         },
          "String cls" : "column col-xs-12 col-12",
          "String weight" : "danger",
          "xtype" : "Card",
+         "Boolean dropable" : true,
          "$ xns" : "Roo.bootstrap",
          "String style" : "max-width:300px;margin: 0 12px;",
+         "String drop_group" : "cards",
          "items" : [
           {
            "String header" : "ticket 1",
            "$ xns" : "Roo.bootstrap",
            "String html" : "body goes here",
            "bool dragable" : true
-          },
-          {
-           "String weight" : "primary",
-           "xtype" : "Button",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "Add Issue"
           }
          ]
         },
index aaa7538..9226da6 100644 (file)
@@ -8,7 +8,6 @@ dashboard4 = new Roo.XComponent({
   '098f6bcd4621d373cade4e832627b4f6' :"test",
   'e93b3fa481be3932aa08bd68c3deee70' :"example 1",
   '60ee66eb2cd31823032664c2e9a79fd5' :"body goes here",
-  '9cf863d802aca813531ca28b319ead90' :"Add Issue",
   'fb66f41b81f5973740bbfed019aa5d7d' :"Upload Images or Documents",
   'd9fb0367346d21079a1c52d72da61c9f' :"ticket 1"
  },
@@ -76,19 +75,14 @@ dashboard4 = new Roo.XComponent({
            weight : 'light',
            xns : Roo.bootstrap,
            '|xns' : 'Roo.bootstrap'
-          },
-          {
-           xtype : 'Button',
-           html : _this._strings['9cf863d802aca813531ca28b319ead90'] /* Add Issue */,
-           weight : 'primary',
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap'
           }
          ]
         },
         {
          xtype : 'Card',
          cls : 'column col-xs-12 col-12',
+         dropable : true,
+         drop_group : 'cards',
          footer : 'a footer',
          header : _this._strings['e93b3fa481be3932aa08bd68c3deee70'] /* example 1 */,
          style : 'max-width:300px;margin: 0 12px;',
@@ -106,13 +100,6 @@ dashboard4 = new Roo.XComponent({
            weight : 'light',
            xns : Roo.bootstrap,
            '|xns' : 'Roo.bootstrap'
-          },
-          {
-           xtype : 'Button',
-           html : _this._strings['9cf863d802aca813531ca28b319ead90'] /* Add Issue */,
-           weight : 'primary',
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap'
           }
          ]
         },