0.0.3 • Published 9 years ago

eureka-addon-file-attachment v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
9 years ago

Eureka-addon-file-attachment

An Eureka addon that provides file attachment support.

This addon provides:

  • the file resource
  • the model : File
  • the property widget: file-attachment
  • the model widgets: model-file-edit and model-file-new

Usage:

{
    Email: {
        properties: {
            title: {
                type: 'string'
            },
            body: {
                type: 'string'
            },
            attachments: {
                type: 'string',

                // multi for multiple attachment
                multi: true,

                widget: {
                    type: 'file-attachment',

                    // if true, allow to search an already saved file
                    // in order to attach it
                    autosuggest: false,

                    // switch to a detailed view
                    useDetailedStyle: false
                }
            }
        }
    }
}

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.