Skip to content

Commit 65617a5

Browse files
authored
Merge pull request jbaysolutions#111 from SergeyKhval/master
add updated event to GridLayout component
2 parents 17edf41 + f24d76d commit 65617a5

File tree

5 files changed

+23
-12
lines changed

5 files changed

+23
-12
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ Working example [here](https://jbaysolutions.github.io/vue-grid-layout/examples/
147147
:vertical-compact="true"
148148
:margin="[10, 10]"
149149
:use-css-transforms="true"
150+
@layout-updated="layoutUpdatedEvent"
150151
>
151152

152153
<grid-item v-for="item in layout"
@@ -164,6 +165,14 @@ Working example [here](https://jbaysolutions.github.io/vue-grid-layout/examples/
164165
</grid-layout>
165166
````
166167

168+
* Layout updated event: every time the layout has finished updating and positions of all grid-items are recalculated
169+
170+
```javascript
171+
layoutUpdatedEvent: function(newLayout){
172+
console.log("Updated layout: ", newLayout)
173+
}
174+
```
175+
167176
* Move event: every time an item is being moved and changes position
168177

169178
```javascript

0 commit comments

Comments
 (0)