Home

Awesome

autoForm Image Gallery


Autoform Gallery Image

Motivation

The motivation behind this package is that while plugins such as autoform-file allow you to upload files, there are no 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;
      }
    }
  },
...
}