- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 251
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
Set ghost content #102
Comments
Hey Dave,
Yes I understand. Actually that was a feature once I needed too.
Let me see what I can do.
Meanwhile you can try updating 'ghost'. You can get it by
querySelector('.smooth-dnd-ghost')
…On Fri, Apr 5, 2019 at 1:32 AM Dave Stewart ***@***.***> wrote:
Is there any way to set the content of the ghost?
I have an operation where I'm dragging a large object (the window column)
but when I drag it up into the tabs, I want to collapse it into a smaller
object so I can drop it into the named slots:
[image: dnd - set ghost content]
<https://user-images.githubusercontent.com/132681/55595094-290dca00-573a-11e9-8cf4-de043154ff33.gif>
Hopefully this is easy to understand!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#102>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AD5EM8gWvKWH2yIpL-VJO-vvFgDFqp0Wks5vdouQgaJpZM4cd5nr>
.
|
I had previously thought I wouldn't be able to do this. It would be so exciting if it became possible! Thank you :D |
@davestewart Did you find any workaround for this in the meantime until @kutlugsahin figures something out? |
I haven't had time to think about it since! My work schedule is killing me :( |
same problem here, need possibility to update UI before drag starts and collapse ghost's content |
Hey @kutlugsahin ! I'm finally back on this feature... Not sure if you managed to think about it since? |
Is there any way to set the content of the ghost?
I have an operation where I'm dragging a large object (the window column) but when I drag it up into the tabs, I want to collapse it into a smaller object so I can drop it into the named slots:
Right now the size of the original item is causing it to be impossible to see!
Also... would it be possible to change from horizontal to any direction programatically?
When I would swap to the smaller graphic, I would probably want to go from X-axis to all axis.
The text was updated successfully, but these errors were encountered: