Vue-grid-layout: Questions: fixed (pinned) grid-item, collision event

Created on 23 Oct 2018  ·  4Comments  ·  Source: jbaysolutions/vue-grid-layout

1: Is there a way to fix the x, y, w, h values ​​of grid-item?
I do not want to change the position of another grid-item by dragging it.

2: If a collision occurs during dragging, can I receive an event?
I want to invalidate the drag event when it crashes.

  1. When adding a grid item, is there a way to check the layout range (cols, rows) is overflowed?
question

All 4 comments

1: You can set the "static" option to "true"

{ x: 1, y: 1, w: 2, h: 2, i: '2x2', static: true}
  1. No events are fired on collisions

  2. No

Thanks @gmsa
Could I ask if can support both cases?

Not planning to implement either case, feel free to submit a PR

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CheyenneForbes picture CheyenneForbes  ·  9Comments

goalie7 picture goalie7  ·  6Comments

terrygogo picture terrygogo  ·  6Comments

msiggi picture msiggi  ·  5Comments

spider58 picture spider58  ·  5Comments