Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

131
Views
Custom Rendering of Dragula's dragged elements

I know the title is confusing, but basically the problem I'm running into is the following:

Suppose 2 Bootstrap Tables like:

Table 1:

# Title Points
1 Drag 1.00
2 Super 1.00

Table 2:

# Title Points
5 What 1.00
7 Now? 1.00

I want to be able to drag one row from a table into the other. I am able to achieve this with dragula, but when I drag a row (say row 1 in table 1), dragula renders it like this:

1Drag1.00

I would like for it to render like its a row in the table, or at the very least render just the Title field.

I've tried experimenting with the following JS function:

let d = dragula([document.getElementById("table1"), document.getElementById("table2")]);
d.on("drag", (el, source) => {
  let c = document.getElementsByClassName("gu-transit")[0];
  c.outerHTML = "<h1>" + c.innerHTML + "</h1>";
});

but this would always result in an error (probably because .gu-transit isn't in the DOM before this listener is called)

Any feedback would be appreciated!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!