Skip to content
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

Nested Sort #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
dist
build
package-lock.json
29 changes: 29 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,35 @@ <h2 class="text-xl mt-8 mb-2">With custom handler</h2>
Get the groceries
</li>
</ul>

<h2 class="text-xl mt-8 mb-2">Nested</h2>
<div id="nested">
<div data-controller="sortable" class="sortable grid grid-cols-2 gap-2">
<div class="block p-4 border border-8 border-gray-600 rounded-sm">
Volkswagen
<div data-controller="sortable" class="sortable">
<div class="block mb-4 p-4 border border-8 border-gray-600 rounded-sm">
Chrysler LeBaron
</div>
<div class="block mb-4 p-4 border border-8 border-gray-600 rounded-sm">
Dodge Roadster
</div>
</div>
</div>

<div class="block p-4 border border-8 border-gray-600 rounded-sm">
Maserati
<div data-controller="sortable" class="sortable">
<div class="block mb-4 p-4 border border-8 border-gray-600 rounded-sm">
Fiat Durango
</div>
<div class="block mb-4 p-4 border border-8 border-gray-600 rounded-sm">
Mini Roadster
</div>
</div>
</div>
</div>
</div>
</section>
</div>

Expand Down