You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that Swapy requires the nesting of the element with the data-swapy-item attribute within an element that has the data-swapy-slot attribute. See below from the docs.
<div class="container">
<div class="section-1" data-swapy-slot="foo">
<div class="content-a" data-swapy-item="a">
<!-- Your content for content-a goes here -->
</div>
</div>
<div class="section-2" data-swapy-slot="bar">
<div class="content-b" data-swapy-item="b">
<!-- Your content for content-b goes here -->
</div>
</div>
<div class="section-3" data-swapy-slot="baz">
<div class="content-c" data-swapy-item="c">
<!-- Your content for content-c goes here -->
</div>
</div>
</div>
This does not seem possible to achieve with a table. It requires that <td> be a direct decendent of <tr> and <tr> be a direct decendent of <tbody>.
Is there any workaround for this?
The text was updated successfully, but these errors were encountered:
Is it possible to use Swapy within a HTML table structure if the desired functionality is to drag and drop table rows?
A table has the following structure:
The problem is that Swapy requires the nesting of the element with the
data-swapy-item
attribute within an element that has thedata-swapy-slot
attribute. See below from the docs.This does not seem possible to achieve with a table. It requires that
<td>
be a direct decendent of<tr>
and<tr>
be a direct decendent of<tbody>
.Is there any workaround for this?
The text was updated successfully, but these errors were encountered: