You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-5
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@ Show this dropzone:
29
29
- Show/hide labels & image previews
30
30
31
31
> Widget size: ~180Kb, which is ~52Kb Gzipped online
32
+
> Test project can be downloaded [here](https://github.com/JelteMX/widget-test-projects#file-dropper)
32
33
33
34
## Compatibility
34
35
@@ -51,7 +52,7 @@ Only works in Mendix 8.0.0 and upwards. This widget was created using MobX, whic
51
52
52
53
### 1. Data
53
54
54
-

55
+

55
56
56
57
- Select and Entity that is (or extends) a `System.FileDocument` (`System.Image` also works)
57
58
-**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
62
63
63
64
### 2. Restrictions
64
65
65
-

66
+

66
67
67
68
- Max file size can be set to 0 to have no restrictions. This is always in Mb (1024 * 1024 bytes)
68
69
- 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:
80
81
81
82
### 4. Events
82
83
83
-

84
+

84
85
85
86
- 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
86
87
@@ -89,15 +90,18 @@ Verification can be done in two ways:
89
90

90
91
91
92
- 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
92
94
- You can switch the type label, previews off
93
95
- You can switch off the progress bar once it has been uploaded.
96
+
- You can switch off the filesize info
94
97
- For the progress bar you can set different colors, depending on the status
95
98
96
99
### 6. Texts
97
100
98
-

101
+

99
102
100
103
- 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
101
105
102
106
## Demo project
103
107
@@ -121,7 +125,6 @@ TBD...
121
125
- Add e2e tests
122
126
- Replace progress bar with proper div so it works in Edge
123
127
- Add styling properties (class prefixes etc), replace some BEM
0 commit comments