ngx-drag-and-drop
v0.1.0
Published
Angular library that allow you to build drag and drop without the native HTML5 API
Downloads
85
Maintainers
Readme
ngx drag and drop
Angular library that allow you to build drag and drop without the native HTML5 API. Mobile touches are supported.
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
- Fork the repo
- Create a branch in your repo with a descriptive name
- Code your fix
- Create a pull request
- Await response from the maintainers!
License
MIT