Skip to content
This repository was archived by the owner on Jan 18, 2021. It is now read-only.

Latest commit

 

History

History
49 lines (34 loc) · 1 KB

README.md

File metadata and controls

49 lines (34 loc) · 1 KB

ngx drag and drop

npm version

Angular library that allow you to build drag and drop without the native HTML5 API. Mobile touches are supported.

Demo

Usage

Start by importing DragDropModule module

import { NgxDragAndDropModule } from 'ngx-drag-and-drop';

@NgModule({
    imports: [
        NgxDragAndDropModule
    ],
})

export class ExampleModule { }

Add the 'drag-and-drop-wrapper', 'draggable' and 'dropzone' directives

<div drag-and-drop-wrapper>

  <div draggable="card">
    Drag me
  </div>

  <div dropzone>
    Drop at me
  </div>

</div>

How to Contribute

  1. Fork the repo
  2. Create a branch in your repo with a descriptive name
  3. Code your fix
  4. Create a pull request
  5. Await response from the maintainers!

License

MIT