Skip to content

Commit e68d332

Browse files
authored
Version 1.3.0 (#10)
* Update dependencies * Update Validations * Updated filesize, removing from webpack * Add delete confirmation * Refactor uiProps, add option to hide preview & filesize * Update documentation * Update DOCS
1 parent 733d9d5 commit e68d332

26 files changed

+1682
-1291
lines changed

README.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Show this dropzone:
2929
- Show/hide labels & image previews
3030

3131
> Widget size: ~180Kb, which is ~52Kb Gzipped online
32+
> Test project can be downloaded [here](https://github.com/JelteMX/widget-test-projects#file-dropper)
3233
3334
## Compatibility
3435

@@ -51,7 +52,7 @@ Only works in Mendix 8.0.0 and upwards. This widget was created using MobX, whic
5152

5253
### 1. Data
5354

54-
![configuration1](/assets/configuration1.jpg)
55+
![configuration1](/assets/configuration1.png)
5556

5657
- Select and Entity that is (or extends) a `System.FileDocument` (`System.Image` also works)
5758
- **Name** attribute is required, others are not
@@ -62,7 +63,7 @@ We include the normal **POST** method (default) which will do a request to the M
6263

6364
### 2. Restrictions
6465

65-
![configuration2](/assets/configuration2.jpg)
66+
![configuration2](/assets/configuration2.png)
6667

6768
- Max file size can be set to 0 to have no restrictions. This is always in Mb (1024 * 1024 bytes)
6869
- Max files can be set to 0 to have no restrictions. If it is set to 1, the dropzone (which is clickable) will also restrict the amount of files you can select in the file dialog
@@ -80,7 +81,7 @@ Verification can be done in two ways:
8081

8182
### 4. Events
8283

83-
![configuration4](/assets/configuration4.jpg)
84+
![configuration4](/assets/configuration4.png)
8485

8586
- This microflow/nanoflow (can be used both) will be executed after a succesful upload. It will send the file object itself as an input parameter
8687

@@ -89,15 +90,18 @@ Verification can be done in two ways:
8990
![configuration5](/assets/configuration5.png)
9091

9192
- For various icons you can either use the standard Bootstrap Gylphicon (the classname will be prefixed with `glyphicon glyphicon-`) or a built-in icon.
93+
- You can switch the preview off entirely
9294
- You can switch the type label, previews off
9395
- You can switch off the progress bar once it has been uploaded.
96+
- You can switch off the filesize info
9497
- For the progress bar you can set different colors, depending on the status
9598

9699
### 6. Texts
97100

98-
![configuration6](/assets/configuration6.jpg)
101+
![configuration6](/assets/configuration6.png)
99102

100103
- Various texts can be configured. These are actually translatable strings, so the can be translated in Mendix based on the locale.
104+
- You can switch off the Confirmation dialog by leaving the Delete text empty
101105

102106
## Demo project
103107

@@ -121,7 +125,6 @@ TBD...
121125
- Add e2e tests
122126
- Replace progress bar with proper div so it works in Edge
123127
- Add styling properties (class prefixes etc), replace some BEM
124-
- Make document icon optional
125128

126129
## IDEAS
127130

assets/configuration1.jpg

-175 KB
Binary file not shown.

assets/configuration1.png

127 KB
Loading

assets/configuration2.jpg

-94.6 KB
Binary file not shown.

assets/configuration2.png

93.5 KB
Loading

assets/configuration3a.png

3.07 KB
Loading

assets/configuration3b.png

4.15 KB
Loading

assets/configuration4.jpg

-66 KB
Binary file not shown.

assets/configuration4.png

80 KB
Loading

assets/configuration5.png

67.8 KB
Loading

assets/configuration6.jpg

-66.3 KB
Binary file not shown.

assets/configuration6.png

85.8 KB
Loading

0 commit comments

Comments
 (0)