Skip to content

Commit

Permalink
rm updated license added
Browse files Browse the repository at this point in the history
  • Loading branch information
Kutlu Sahin committed Nov 28, 2018
1 parent dba0a11 commit 9d584ee
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2016, Claudéric Demers

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.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,26 @@ onDragLeave () {
}
```

### onDropReady

The function to be called by the container which is being drag over, when the index of possible drop position changed in container. Basically it is called each time the draggables in a container slides for opening a space for dragged item. **dropResult** is the only parameter passed to the function which contains the following properties.

```jsx
<Container @drop-ready="onDropReady">
```
```js
onDropReady(dropResult) {
const { removedIndex, addedIndex, payload, element } = dropResult;
...
}
```
#### Parameters
- **dropResult** : `object`
- **removedIndex** : `number` : index of the removed children. Will be `null` if no item is removed.
- **addedIndex** : `number` : index to add droppped item. Will be `null` if no item is added.
- **payload** : `object` : the payload object retrieved by calling *getChildPayload* function.
- **element** : `DOMElement` : the DOM element that is moved

### `@drop`

The event to be emitted by any relevant container when drop is over. (After drop animation ends). Source container and any container that could accept drop is considered relevant.
Expand Down

0 comments on commit 9d584ee

Please sign in to comment.