vue-grid-layout
vue-grid-layout copied to clipboard
Get the item that is selected
Hi,
I'm trying to get the item that gets the click (without resizing or dragging, just being clicked/touched), I just want to do something like adding this.$emit('touched', item.i), so that I can catch which item is being clicked. But I'm having a hard time finding how it handles the click event (before the component even knows if it has to handle as a resize or a drag). Could you point me out where in the code this happens.
I would apreciate it a lot :). Thanks for this useful project!.
@felipeacunago , hi, have you got the solution here ? I meet the similar questions, when the user click the item, they want to modify some properties on a panel (or popup a mouse right button event to open a property page). Is there a getSelectedItem() event related with the griditem? Thanks
可以在item里面放个元素?
内部使用div嵌套,但是会出现拖拽后选中的现象。