ソースを参照

setMetaFromTargetForm --> getMetaFromForm

//cc @goto-bus-stop updated docs because option naming was changed #381
Artur Paikin 7 年 前
コミット
8f2bf7c84f
1 ファイル変更3 行追加3 行削除
  1. 3 3
      website/src/docs/plugins.md

+ 3 - 3
website/src/docs/plugins.md

@@ -71,9 +71,9 @@ const GoogleDrive = require('uppy/lib/plugins/GoogleDrive')
 uppy.use(GoogleDrive, {target: Dashboard, host: 'http://localhost:3020'})
 uppy.use(GoogleDrive, {target: Dashboard, host: 'http://localhost:3020'})
 ```
 ```
 
 
-### `setMetaFromTargetForm`
+### `getMetaFromForm: false`
 
 
-If `setMetaFromTargetForm === true`, UI acquire type plugins, like Dashboard, FileInput and DragDrop, before mounting themselves or doing anything else, will extract FormData from the target `<form>` element (it must be a form currently), and merge the object with the global `uppy.state.meta`.
+If `getMetaFromForm === true`, UI acquire type plugins, like `Dashboard`, `FileInput` and `DragDrop`, before mounting themselves or doing anything else, will extract FormData from the target `<form>` element (it must be a form currently), and merge the object with the global `uppy.state.meta`.
 
 
 If you have a form like this one:
 If you have a form like this one:
 
 
@@ -91,7 +91,7 @@ And then do:
 ```js
 ```js
 uppy.use(DragDrop, {
 uppy.use(DragDrop, {
   target: '.MyForm',
   target: '.MyForm',
-  setMetaFromTargetForm: true
+  getMetaFromForm: true
 })
 })
 ```
 ```