Skip to content

Commit ff4dbdd

Browse files
committed
Updated docs with new prop changes
1 parent 90c80e5 commit ff4dbdd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You'll also need to load either the [Material Icon](https://material.io/icons/)
1414
````
1515

1616
## Usage
17-
1. Import the module (`import Dropzone from 'vue2-dropzone'`)
17+
1. Import the module (`import Dropzone from 'vue2-dropzone'`)
1818
2. Register it as a component as you would any other Vue component
1919
3. Use it within your template
2020

@@ -59,7 +59,7 @@ Many of these props are inherited from [dropzone configuration so see their doco
5959
| id | String | A string by which to identify the component, can be anything. **Required**|
6060
| url | String | Url to post the upload to. **Required**|
6161
| paramName | String | The name of the file param that gets transferred. Defaults to file. NOTE: If you have the option uploadMultiple set to true, then Dropzone will append [] to the name.|
62-
| clickable | Boolean | Whether the dropzone area is clickable, if false then users can only drag items on to the area.|
62+
| clickable | Boolean, String | Whether the dropzone area is clickable, if false then users can only drag items on to the area. Can also accept a CSS selector of an element that will open the file dialog when clicked. |
6363
| acceptedFileTypes | String | A comma separated string of accepted file types eg 'image/*,application/pdf,.psd' .|
6464
| thumbnailHeight | Number | The height of thumbnails in pixels.|
6565
| thumbnailWidth | Number | The width of thumbnails in pixels.|
@@ -74,12 +74,13 @@ Many of these props are inherited from [dropzone configuration so see their doco
7474
| dropzoneOptions | Object | A custom set of rules to define your dropzone object, use anything available in the [dropzone config](http://www.dropzonejs.com/#configuration-options).|
7575
| preview-template | Function | A custom preview template which will be passed as function. See following Note |
7676
| resizeWidth | Number | If set, images will be resized to these dimensions before being uploaded. If only one, `resizeWidth` or `resizeHeight` is provided, the original aspect ratio of the file will be preserved. `Default : null` |
77-
| resizeHeight | Number | Height of image to be resized. `Default : null` |
77+
| resizeHeight | Number | Height of image to be resized. `Default : null` |
7878
| resizeMimeType | String | The mime type of the resized image (before it gets uploaded to the server). If `null` the original mime type will be used. To force `jpeg`, for example, use `image/jpeg`. `Default : null` |
7979
| resizeQuality | Number | The quality of the resized images. `Default : null` |
80-
| resizeMethod | String | How the images should be scaled down in case both, `resizeWidth` and `resizeHeight` are provided. Can be either `contain` or `crop`. `Default : 'contain'` |
80+
| resizeMethod | String | How the images should be scaled down in case both, `resizeWidth` and `resizeHeight` are provided. Can be either `contain` or `crop`. `Default : 'contain'` |
8181
| duplicateCheck | Boolean | Whether to check for duplicate file by file name. if true `duplicate-file` event will be emitted. `Default : 'false'` |
8282
| timeout | Number | The timeout for the XHR requests in milliseconds. `Default:30000`|
83+
| method | String | The HTTP method used to submit form file data. `Default:post`|
8384

8485
## Custom Dropzone preview template
8586

0 commit comments

Comments
 (0)