mysterious-toddler-20573
09/16/2022, 8:38 PMmysterious-toddler-20573
09/16/2022, 8:38 PMfreezing-waitress-26396
09/16/2022, 8:39 PMmysterious-toddler-20573
09/16/2022, 8:39 PMmysterious-toddler-20573
09/16/2022, 8:39 PMclosest tr
means "closest enclosing parent tr"mysterious-toddler-20573
09/16/2022, 8:40 PMtr
enclosing the tablemysterious-toddler-20573
09/16/2022, 8:40 PMmysterious-toddler-20573
09/16/2022, 8:40 PMfreezing-waitress-26396
09/16/2022, 8:42 PMhx-target
and all other htmx attributes from the <table>
makes the sort on <tbody>
work without a target.freezing-waitress-26396
09/16/2022, 8:42 PMfreezing-waitress-26396
09/16/2022, 8:46 PMtbody
, the tbody hx-target
overwrites the table hx-target
.
If I omit the tbody
target, the sortable uses the table hx-target
.freezing-waitress-26396
09/16/2022, 8:47 PMmysterious-toddler-20573
09/16/2022, 9:10 PMfreezing-waitress-26396
09/16/2022, 9:14 PMfreezing-waitress-26396
09/16/2022, 9:19 PMgorgeous-airport-54386
09/16/2022, 10:07 PMjs
htmx.on("htmx:beforeSwap", e => e.waitUntil(async () => { /* load libraries... */ })
would this be a fine solution (if it existed)?prehistoric-napkin-53842
09/17/2022, 4:59 PMminiature-lizard-24702
09/17/2022, 5:16 PMhtml
<!-- DROPDOWN: START -->
<button type="button"
class="group relative inline-flex justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:ring-offset-gray-100"
id="menu-button" aria-expanded="true" aria-haspopup="true">
Options
<svg class="-mr-1 ml-2 h-5 w-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"
aria-hidden="true">
<path fill-rule="evenodd"
d="M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z"
clip-rule="evenodd" />
</svg>
miniature-lizard-24702
09/17/2022, 5:16 PMhtml
<div
class="absolute group-focus:block hidden right-0 z-10 mt-9 w-56 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none"
role="menu" aria-orientation="vertical" aria-labelledby="menu-button" tabindex="-1">
<div class="py-1" role="none">
<a href="#" class="hover:bg-gray-100 hover:text-gray-900 text-gray-700 block px-4 py-2 text-sm"
role="menuitem" tabindex="-1" id="menu-item-0">Account
settings</a>
<a href="#" class="hover:bg-gray-100 hover:text-gray-900 text-gray-700 block px-4 py-2 text-sm"
role="menuitem" tabindex="-1" id="menu-item-1">Support</a>
<a href="#" class="hover:bg-gray-100 hover:text-gray-900 text-gray-700 block px-4 py-2 text-sm"
role="menuitem" tabindex="-1" id="menu-item-2">License</a>
<form method="POST" action="#" role="none">
<button type="submit"
class="hover:bg-gray-100 hover:text-gray-900 text-gray-700 block px-4 py-2 text-sm" role="menuitem"
tabindex="-1" id="menu-item-3">Sign out</button>
</form>
</div>
</div>
</button>
<!-- DROPDOWN: END -->
miniature-lizard-24702
09/17/2022, 5:17 PMminiature-lizard-24702
09/17/2022, 5:18 PMminiature-lizard-24702
09/17/2022, 6:28 PMminiature-lizard-24702
09/17/2022, 6:28 PMminiature-lizard-24702
09/17/2022, 6:32 PMmysterious-toddler-20573
09/17/2022, 6:40 PMmysterious-toddler-20573
09/17/2022, 6:41 PMminiature-lizard-24702
09/17/2022, 6:41 PMmysterious-toddler-20573
09/17/2022, 6:41 PMminiature-lizard-24702
09/17/2022, 6:41 PM