Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 867 Bytes

README.md

File metadata and controls

30 lines (26 loc) · 867 Bytes

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;
      }
    }
  },
...
}