From: Alan Knowles Date: Wed, 25 Nov 2020 09:49:41 +0000 (+0800) Subject: fix example X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=03a7eb86563d8546525395971b45c6506e33aa0f fix example --- diff --git a/examples/bootstrap/dashboard4.bjs b/examples/bootstrap/dashboard4.bjs index dcbc22e849..b63815e700 100644 --- a/examples/bootstrap/dashboard4.bjs +++ b/examples/bootstrap/dashboard4.bjs @@ -9,7 +9,6 @@ "098f6bcd4621d373cade4e832627b4f6" : "test", "e93b3fa481be3932aa08bd68c3deee70" : "example 1", "60ee66eb2cd31823032664c2e9a79fd5" : "body goes here", - "9cf863d802aca813531ca28b319ead90" : "Add Issue", "fb66f41b81f5973740bbfed019aa5d7d" : "Upload Images or Documents", "d9fb0367346d21079a1c52d72da61c9f" : "ticket 1" }, @@ -60,12 +59,6 @@ "$ xns" : "Roo.bootstrap", "String html" : "body goes here", "bool dragable" : true - }, - { - "String weight" : "primary", - "xtype" : "Button", - "$ xns" : "Roo.bootstrap", - "String html" : "Add Issue" } ] }, @@ -75,8 +68,10 @@ "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", @@ -87,12 +82,6 @@ "$ xns" : "Roo.bootstrap", "String html" : "body goes here", "bool dragable" : true - }, - { - "String weight" : "primary", - "xtype" : "Button", - "$ xns" : "Roo.bootstrap", - "String html" : "Add Issue" } ] }, diff --git a/examples/bootstrap/dashboard4.js b/examples/bootstrap/dashboard4.js index aaa7538b0d..9226da6e7e 100644 --- a/examples/bootstrap/dashboard4.js +++ b/examples/bootstrap/dashboard4.js @@ -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' } ] },