|
@@ -192,6 +192,12 @@ initialPreview: "<div class='file-preview-text'>" +
|
|
_string_ the initial preview caption text to be displayed. If you do not set a value here and `initialPreview` is set to
|
|
_string_ the initial preview caption text to be displayed. If you do not set a value here and `initialPreview` is set to
|
|
`true` this will default to `"{preview-file-count} files selected"`, where `{preview-file-count}` is the count of the
|
|
`true` this will default to `"{preview-file-count} files selected"`, where `{preview-file-count}` is the count of the
|
|
files passed in `initialPreview`.
|
|
files passed in `initialPreview`.
|
|
|
|
+
|
|
|
|
+#### overwriteInitial
|
|
|
|
+_boolean_ whether you wish to overwrite the initial preview content and caption setup. This is by default set to `false`. When set to `false`, this will always show the
|
|
|
|
+`initialPreview` content at the beginning (when uploading or during clear). If set to `true` any `initialPreview` content set will be overwritten,
|
|
|
|
+when new file is uploaded or when files are cleared. Setting it to `false` will help displaying a saved image or file from database always -
|
|
|
|
+especially when using the `multiple` file upload feature.
|
|
|
|
|
|
#### captionTemplate
|
|
#### captionTemplate
|
|
_string_ the template used to render the caption. The following template variables will be parsed:
|
|
_string_ the template used to render the caption. The following template variables will be parsed:
|
|
@@ -205,12 +211,6 @@ The `captionTemplate` if not set will default to:
|
|
</div>
|
|
</div>
|
|
```
|
|
```
|
|
|
|
|
|
-#### overwriteInitial
|
|
|
|
-_boolean_ whether you wish to overwrite the initial preview content and caption setup. This is by default set to `false`. When set to `false`, this will always show the
|
|
|
|
-`initialPreview` content at the beginning (when uploading or during clear). If set to `true` any `initialPreview` content set will be overwritten,
|
|
|
|
-when new file is uploaded or when files are cleared. Setting it to `false` will help displaying a saved image or file from database always -
|
|
|
|
-especially when using the `multiple` file upload feature.
|
|
|
|
-
|
|
|
|
#### previewTemplate
|
|
#### previewTemplate
|
|
_string_ the template used to render the preview. The following template variables will be parsed:
|
|
_string_ the template used to render the preview. The following template variables will be parsed:
|
|
|
|
|