Переглянути джерело

update Dashboard docs for maxWidth --> width

Artur Paikin 7 роки тому
батько
коміт
ed96fd5d73

+ 4 - 4
website/src/docs/dashboard.md

@@ -112,13 +112,13 @@ uppy.use(Dashboard, {
 
 
 Of course, you can also use the `target` option in the Webcam plugin to achieve this. However, that does not work with the React components. The `target` option may be changed in the future to only accept DOM elements, so it is recommended to use this `plugins` array instead.
 Of course, you can also use the `target` option in the Webcam plugin to achieve this. However, that does not work with the React components. The `target` option may be changed in the future to only accept DOM elements, so it is recommended to use this `plugins` array instead.
 
 
-### `maxWidth: 750`
+### `width: 750`
 
 
-Maximum width of the Dashboard in pixels. Used when `inline: true`.
+Width of the Dashboard in pixels. Used when `inline: true`.
 
 
-### `maxHeight: 550`
+### `height: 550`
 
 
-Maximum height of the Dashboard in pixels. Used when `inline: true`.
+Height of the Dashboard in pixels. Used when `inline: true`.
 
 
 ### `showProgressDetails: false`
 ### `showProgressDetails: false`
 
 

+ 0 - 1
website/src/examples/dashboard/app.es6

@@ -44,7 +44,6 @@ function uppyInit () {
     showProgressDetails: true,
     showProgressDetails: true,
     metaFields: [
     metaFields: [
       { id: 'name', name: 'Name', placeholder: 'file name' },
       { id: 'name', name: 'Name', placeholder: 'file name' },
-      { id: 'license', name: 'License', placeholder: 'specify license' },
       { id: 'caption', name: 'Caption', placeholder: 'add description' }
       { id: 'caption', name: 'Caption', placeholder: 'add description' }
     ]
     ]
   })
   })

+ 3 - 2
website/src/examples/dashboard/index.ejs

@@ -42,10 +42,11 @@ const uppy = Uppy({
   inline: true,
   inline: true,
   target: '.DashboardContainer',
   target: '.DashboardContainer',
   replaceTargetContent: true,
   replaceTargetContent: true,
+  showProgressDetails: true,
   note: 'Images and video only, 2–3 files, up to 1 MB',
   note: 'Images and video only, 2–3 files, up to 1 MB',
-  maxHeight: 450,
+  height: 470,
   metaFields: [
   metaFields: [
-    { id: 'license', name: 'License', placeholder: 'specify license' },
+    { id: 'name', name: 'Name', placeholder: 'file name' },
     { id: 'caption', name: 'Caption', placeholder: 'describe what the image is about' }
     { id: 'caption', name: 'Caption', placeholder: 'describe what the image is about' }
   ]
   ]
 })
 })