question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Adding a class to the dragged element

See original GitHub issue

There should be an option to append classes to the currently dragged element. The current way with the transformDraggedElement seems nonsense to me. Just adding an option like draggingElementClasses: Array<string> would be much easier.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
isaacHagoelcommented, Apr 13, 2022

Thanks for sharing your opinions with me

On Wed, Apr 13, 2022, 22:47 KevShe @.***> wrote:

I think this lib should have more/easier options to inject styles and classes and should not be opinionated about styling at all. The lib should not force devs to user bad-practice backdoors to give elements a proper styling.

— Reply to this email directly, view it on GitHub https://github.com/isaacHagoel/svelte-dnd-action/issues/370#issuecomment-1098009623, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4OZC4NLUBQIF567YO5SLTVE267TANCNFSM5TKGFFNA . You are receiving this because you commented.Message ID: @.***>

0reactions
isaacHagoelcommented, Apr 13, 2022

Btw, you have the morphDisabled option. Not sure you’ve seen

On Wed, Apr 13, 2022, 23:15 KevShe @.***> wrote:

Closed #370 https://github.com/isaacHagoel/svelte-dnd-action/issues/370.

— Reply to this email directly, view it on GitHub https://github.com/isaacHagoel/svelte-dnd-action/issues/370#event-6427292197, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4OZC4VTTDVJEDSBOMFCHDVE3CIFANCNFSM5TKGFFNA . You are receiving this because you commented.Message ID: @.*** com>

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Drag and Drop] Provide an input from where the preview will ...
Bug, feature request, or proposal: A new input to provide a DOM element to attach the cdkDragPreview element What is the expected behavior?...
Read more >
Element Dragging - jsPlumb Toolkit Edition
A common feature of interfaces using jsPlumb is that the elements are draggable ... from 4.x, be adding this class to any element...
Read more >
How To Create Drag and Drop Elements with Vanilla ...
In this tutorial, we will build a drag-and-drop example using the HTML Drag and Drop API with vanilla JavaScript to use the event...
Read more >
Adding drag-and-drop functionality with react-beautiful-dnd
Let's first create the elements we need to get our list ready for dragging and dropping. As we learned above, the first step...
Read more >
Is drag-and-drop possible in watir-webdriver? - Stack Overflow
require 'rubygems' require 'watir-webdriver' module Watir class Element def drag_and_drop_on(other) assert_exists driver.action.drag_and_drop(@element, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found