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
If you want to use an array of images inside you have to define the autoform on on the [schema key](https://github.com/aldeed/meteor-simple-schema#schema-keys)
83
81
84
82
```javascript
@@ -102,7 +100,7 @@ Schemas.Posts = new SimpleSchema({
102
100
})
103
101
```
104
102
105
-
### Customization ###
103
+
### Customization
106
104
You can customize the button / remove text.
107
105
108
106
Defaults:
@@ -127,7 +125,8 @@ picture: {
127
125
}
128
126
129
127
```
130
-
### Custom file preview ###
128
+
129
+
### Custom file preview
131
130
132
131
Your custom file preview template data context will be:
133
132
@@ -153,7 +152,7 @@ picture: {
153
152
</template>
154
153
```
155
154
156
-
### Custom select/remove file buttons ###
155
+
### Custom select/remove file buttons
157
156
158
157
Remember to add `js-af-select-file` and `js-af-remove-file` classes to nodes which should fire an event on click.
159
158
@@ -181,7 +180,7 @@ picture: {
181
180
</template>
182
181
```
183
182
184
-
### Callbacks ###
183
+
### Callbacks
185
184
186
185
**onBeforeInsert** - can be used to modify file (remember to return fileObj)
0 commit comments