An open API service indexing awesome lists of open source software.

https://github.com/stfbauer/spfx-drag-n-drop

This SPFX Sample shows how items can be moved from one web part to another via the HTML5 Drag and Drop
https://github.com/stfbauer/spfx-drag-n-drop

Last synced: 11 months ago
JSON representation

This SPFX Sample shows how items can be moved from one web part to another via the HTML5 Drag and Drop

Awesome Lists containing this project

README

          

# SPFX Sample - Drag and Drop elements between web parts

![SPFx Status](https://img.shields.io/badge/SPFx-Drop%206-%23da3b01.svg)

This sample demonstrates how items can be moved from one web part to another just by using the [HTML5 drag and drop API](https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API) and [React](https://facebook.github.io/react/).

![Drag and drop to other web part](/assets/spfx-drag-drop.jpg?raw=true)

## Installation
This sample is built with the [SharePoint Framework SPFX Drop 6](https://github.com/SharePoint/sp-dev-docs/wiki/Release-Notes-Drop-6). To install simply execute:

```
npm install
```

This will install all npm dependencies for this sample. Once this have been finished simply execute the following command.

```
gulp serve
```

Additional information can be found on my blog - [Drag and drop elements across web parts](http://www.n8d.at/blog/spfx-sample-drag-and-drop-elements-between-web-parts/)

## License
Copyright (c) 2016 Stefan Bauer

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.