Open bhaviljain68 opened 1 year ago
@bhaviljain68 There's a event named @drag-enter
. This event detects the updated dom once the dragging ghost is in place.
You can use that to select the .dndrag-ghost
directly using querySelector.
And manipulate using dom manipulation. That's how I did in my project.
If you need a background under the dragged element use property in Container :drop-placeholder | boolean,object | undefined | Options for drop placeholder. className, animationDuration, showOnTop This is in example https://amendx.github.io/vue-dndrop/examples/cards.html
Hi,
I've been trying to style the ghost element, but have been unsuccessful.
I'm using Laravel, InertiaJS, VueJS & TailwindCSS
When I apply
drag-class="bg-red-500"
to the<Container>
element, only the drag-handle area is getting the background color.when I try to give a custom (
on-drag
) class to thedrag-class
prop, nothing happens. I tried using scoped and non scoped style tag, I even tried putting the class in theapp.blade.php
file (where Inertia renders Vue. i.e. the root vue element).An excerpt of my code
I tried targeting
.dndrag-ghost
element directly, but that also didn't make a differencePlease Help