Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple addition of elements to 1 parent #404

Open
hk3dva opened this issue Mar 14, 2024 · 0 comments
Open

Multiple addition of elements to 1 parent #404

hk3dva opened this issue Mar 14, 2024 · 0 comments

Comments

@hk3dva
Copy link

hk3dva commented Mar 14, 2024

I doubt that this is implemented, but I would like to know if there is any possibility to add 2 or more vue-draggable-resizables and make them have 1 common parent as a constraint.
I tried to naively implement a simple addition, but it turns out that each subsequent element is a child of the previous one.

<template>
    <Story auto-props-disabled title="Basic use case">
        <div style="position: relative; height: 400px; border: 1px solid blue; margin: 1em;">
        
          <vue-draggable-resizable :parent="true">
            <p>321</p>
          </vue-draggable-resizable>
          
          <vue-draggable-resizable :parent="true">
            <p>123</p>
          </vue-draggable-resizable>
          
        </div>
 
        <template #controls>
        <HstCheckbox v-model="parent" title="Costrained in parent" />
      </template>
    </Story>
    <Block />
  </template>

In this example, I want to <div style="position: relative; height: 400px; border: 1px solid blue; margin: 1em;"> was a parent for everyone vue-draggable-resizable.

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

No branches or pull requests

1 participant