-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for file input field / Dropzone.js? #20
Comments
Hi, Nice idea!
The only thing I have to think about is :
The main configuration parameter is clearly the The good news is : So |
v1.1.1 won't exist but v1.2.0 instead. Then I take care (v1.2.1) of DropZoneJS (it is very demanded). |
Explanations: there is no: formlyConfig.setType({})
// or if in config:
formlyConfigProvider.setType({}) But it remain in html (here is what I call hack since it breaks the principle of angular formly to generate from by a model not html) <form ng-submit="vm.onSubmit()" name="vm.form" novalidate>
<formly-form model="vm.model" fields="vm.fields" options="vm.options" form="vm.form">
<!-- drop zone is here it is not in vm.fields model... -->
<button dropzone="dropzoneConfig">
Drag and drop files here or click to upload
</button>
<button type="submit" class="btn btn-primary submit-button" ng-disabled="vm.form.$invalid">Submit</button>
<button type="button" class="btn btn-default" ng-click="vm.options.resetModel()">Reset</button>
</formly-form>
</form> fallback solution since I would like to have an upload control in easy Form Generator: otherwise: |
v1.2.0 is now released, I will have more time to focus on upload file control. let's go on! |
I don't find any working example that could fit in easyFormGenerator. Until something works, I will go on refactoring easyFormGenerator using angular 1.5 components (and all new angular2 like stuffs)
|
@MacKentoch Yeh that sounds more beneficial to extend it so dynamic controls can be added. |
Hi, what would be the chance, or is it already possible, to integrate a file upload input field type, or something like Dropzone.js (which angular-formly already supports)?
Thanks!
The text was updated successfully, but these errors were encountered: