Fix #6790 - Upload Button
[roojs1] / examples / bootstrap / dashboard1.bjs
index c41cbea..79ab753 100644 (file)
@@ -9,7 +9,6 @@
   "dbd7790bcd23fde7607101ef6a633779" : "http://",
   "9dffbf69ffba8bc38bc4e01abf4b1675" : "Text",
   "680e083786e18d3b9bd07bffd61dc5dc" : "after : <i class="fa fa-ambulance"></i> before : <i class="fa fa-dollar"></i>",
-  "bc6d090c772eedbd8e59e273620830c6" : "File Input",
   "f6b6d9142474aba10b39e88cf4e06f6e" : "before : @",
   "7c4d0cf56e05ed67ec50246c517e149b" : "md 3",
   "cb6b36c6d62d94b76628a4543517f89b" : "md 4",
@@ -26,6 +25,7 @@
   "ac8f3751f51c35383892f7a1684e35ea" : "disabled = true",
   "8ac5836f3de7379d49bc60dcd36913c7" : "Input with Error",
   "cb76b3c00a2436a2a0d57f1282cbd66a" : "after : <i class="fa fa-after"></i>",
+  "dc8f50091cddc5183be3a5b5f774912a" : "Upload a file",
   "fd249a0c28275ebf9d4c8464ca2225cf" : "ComboBox",
   "5485e0b19975fe1d4400e35162a7c099" : "Quick Example",
   "c4ca4238a0b923820dcc509a6f75849b" : "1",
@@ -76,8 +76,8 @@
    "items" : [
     {
      "String cls" : "header",
-     "xtype" : "Container",
      "tag" : "header",
+     "xtype" : "Container",
      "* xinclude" : "Dashboard.Header1",
      "$ xns" : "Roo.bootstrap"
     },
                      "String vtype" : "email"
                     },
                     {
-                     "xtype" : "Input",
-                     "string placeholder" : "Enter email",
-                     "String inputType" : "file",
-                     "String fieldLabel" : "File Input",
+                     "xtype" : "ButtonUploader",
+                     "string html" : "Upload a file",
                      "$ xns" : "Roo.bootstrap"
                     },
                     {
                     },
                     {
                      "xtype" : "Header",
-                     "$ xns" : "Roo.bootstrap",
                      "Number level" : 4,
+                     "$ xns" : "Roo.bootstrap",
                      "String html" : "With Icons"
                     },
                     {
                     },
                     {
                      "xtype" : "Header",
-                     "Number level" : 4,
                      "$ xns" : "Roo.bootstrap",
+                     "Number level" : 4,
                      "String html" : "With checkbox and radio"
                     },
                     {
                     },
                     {
                      "xtype" : "Header",
-                     "$ xns" : "Roo.bootstrap",
                      "Number level" : 4,
+                     "$ xns" : "Roo.bootstrap",
                      "String html" : "With buttons"
                     },
                     {
                     },
                     {
                      "xtype" : "TextArea",
-                     "$ xns" : "Roo.bootstrap",
-                     "String fieldLabel" : "Textarea"
+                     "String fieldLabel" : "Textarea",
+                     "$ xns" : "Roo.bootstrap"
                     },
                     {
                      "xtype" : "TextArea",