Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Getting selected model Id #212

Open
Masterpc96 opened this issue Dec 12, 2020 · 0 comments
Open

Getting selected model Id #212

Masterpc96 opened this issue Dec 12, 2020 · 0 comments

Comments

@Masterpc96
Copy link

I have multiple Moveable objects and I want to get target id but still I got undefined
` <Moveable
class="moveable-line"
v-bind="moveable"
v-model="selectedSeat"
@drAg="handleDrag"
@rotate="handleRotate"
v-for="car in seats" :key="car.name"

    >
      <img src='../../assets/seat.png' width="50px" v-bind:id="car.name">
    </Moveable>`

here is my movables elements and my handleDrag method
handleDrag({ target, transform}) { console.log("onDrag", transform); console.log("seatId", target.id); target.style.transform = transform; },

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant