vue-grid-layout icon indicating copy to clipboard operation
vue-grid-layout copied to clipboard

Get the item that is selected

Open felipeacunago opened this issue 5 years ago • 4 comments

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 avatar Nov 19 '18 01:11 felipeacunago

@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

besley avatar Apr 10 '21 02:04 besley

可以在item里面放个元素?

ilivecoding avatar Dec 03 '21 09:12 ilivecoding

图片

ilivecoding avatar Dec 04 '21 00:12 ilivecoding

image 内部使用div嵌套,但是会出现拖拽后选中的现象。

Chenmin926 avatar Jan 15 '24 01:01 Chenmin926