organicinternet / ember-drag-drop-polyfill

Brings drag-drop-polyfill into your Ember applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ember-drag-drop-polyfill

Build Status npm version

This addon brings mobile-drag-drop into your Ember applications to polyfill drag and drop events for mobile browsers.

Installation

ember install ember-drag-drop-polyfill

For versions of Ember CLI < 2.15,

ember install ember-drag-drop-polyfill@0.1.0

Usage

Configure what files are included in your build by modifying ember-cli-build.js.

Example:

// ember-cli-build.js

var app = new EmberApp(defaults, {
  // Add options here

  "ember-drag-drop-polyfill": {
    includeCSS: true,
    includeIconsCss: false,
    includeDebugCss: true,
    includeScrollBehavior: false,
  }
});

Pass configuration options through to mobile-drag-drop by modifying config/environment.js.

Example:

// config/environment.js 
var ENV = {

  // ...

  "ember-drag-drop-polyfill": {
    enableEnterLeave: true,
    holdToDrag: false
  },
  
  // ...
};

License

This project is licensed under the MIT License.

About

Brings drag-drop-polyfill into your Ember applications.

License:MIT License


Languages

Language:JavaScript 84.4%Language:HTML 15.6%