Skip to content

Commit 02164b8

Browse files
Update README.md
1 parent 244c415 commit 02164b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ You can find an example project here: https://github.com/alessiomaffeis/vue-pict
8383
- **accept**: (media type, optional) the accepted image type(s), e.g. image/jpeg, image/gif, etc. Default value: 'image/*'.
8484
- **size**: (MB, optional) the maximum accepted file size in megabytes.
8585
- **removable**: (boolean, optional) set *:removable="true"* if you want to display a "Remove Photo" button. Default value: false.
86+
- **hideChangeButton**: (boolean, optional) set *:hideChangeButton="true"* if you want to hide the "Change Photo" button. Default value: false.
8687
- **id, name**: (string, optional) the id and name attributes of the HTML input element.
8788
- **buttonClass**: (string, optional) the class which will be applied to the 'Change Photo' button.
8889
Default value: 'btn btn-primary button'.
@@ -126,6 +127,7 @@ Default value: true.
126127
- **change**: emitted on (successful) picture change. If you need to access the underlying image from the parent component, add a *ref* attribute to picture-input (see the example above). You may want to use *this.$refs.pictureInput.image* (Base64 Data URI string) or *this.$refs.pictureInput.file* (File Object)
127128
- **remove**: emitted on picture remove.
128129
- **click**: emitted on picture click.
130+
- **error**: emitted on error, along with an object with *type*, *msg*, and optional additional parameters.
129131

130132
## TODOs
131133

0 commit comments

Comments
 (0)