Skip to content

Instantly share code, notes, and snippets.

@PetraMotz
Created August 4, 2021 12:02
Show Gist options
  • Save PetraMotz/7a35abc01756cf02819c0fef32d695b4 to your computer and use it in GitHub Desktop.
Save PetraMotz/7a35abc01756cf02819c0fef32d695b4 to your computer and use it in GitHub Desktop.
jQuery #js #draganddrop #sortable
https://jqueryui.com/sortable/#placeholder
<div class="existingImagesContainer fullSize mb-2 d-flex align-items-end" id="sortingImages">
<div class="existingImageBox mr-2 ui-state-default" ></div>
</div>
$('#sortingImages').sortable({
placeholder: "ui-state-highlight",
forcePlaceholderSize: true
});
$('#sortingImages').disableSelection();
plaholder kann man stylen
Beispiel gesundes Bayern
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment