Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rikonor/meteor-autoform-image-gallery
Select images in autoform
https://github.com/rikonor/meteor-autoform-image-gallery
autoform gallery meteor meteorjs
Last synced: about 1 month ago
JSON representation
Select images in autoform
- Host: GitHub
- URL: https://github.com/rikonor/meteor-autoform-image-gallery
- Owner: rikonor
- License: mit
- Created: 2015-12-10T20:54:26.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-23T03:48:36.000Z (almost 9 years ago)
- Last Synced: 2024-10-01T05:20:45.704Z (about 1 month ago)
- Topics: autoform, gallery, meteor, meteorjs
- Language: JavaScript
- Homepage: https://atmospherejs.com/rikonor/autoform-image-gallery
- Size: 375 KB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# autoForm Image Gallery
---![Autoform Gallery Image][GalleryImage]
#### Motivation
The motivation behind this package is that while plugins such as [autoform-file][autoform-file] allow you to upload files, there are no [autoform][autoform] plugins that provide a convenient user interface for selecting those images later on.#### Usage
Let's say we want to add an image select field to our Article form.
Note: `imageFiles` should be a list of objects containing an `_id` and `url`.
```
Schemas.Articles = new SimpleSchema({
...
image: {
type: String,
autoform: {
type: 'imageGallery',
options: function() {
return imageFiles;
}
}
},
...
}
```[GalleryImage]: docs/gallery.png "AutoForm Gallery Image"
[autoform]: https://github.com/aldeed/meteor-autoform
[autoform-file]: https://github.com/yogiben/meteor-autoform-file