25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

70 satır
2.0 KiB

  1. window.addEventListener("DOMContentLoaded", () => {
  2. new Sortable(document.getElementById("in-action-sortable-demo"), {
  3. animation: 150,
  4. ghostClass: "ghost",
  5. dragClass: "drag",
  6. })
  7. new Sortable(document.getElementById("simple-sortable-demo"), {
  8. animation: 150,
  9. ghostClass: "ghost",
  10. dragClass: "drag",
  11. })
  12. new Sortable(document.getElementById("handle-sortable-demo"), {
  13. animation: 150,
  14. handle: "[data-handle]",
  15. ghostClass: "ghost",
  16. dragClass: "drag",
  17. })
  18. new Sortable(document.getElementById("shared-sortable-demo-1"), {
  19. animation: 150,
  20. group: "shared",
  21. ghostClass: "ghost",
  22. dragClass: "drag",
  23. })
  24. new Sortable(document.getElementById("shared-sortable-demo-2"), {
  25. animation: 150,
  26. group: "shared",
  27. ghostClass: "ghost",
  28. dragClass: "drag",
  29. })
  30. new Sortable(document.getElementById("filter-sortable-demo"), {
  31. animation: 150,
  32. ghostClass: "ghost",
  33. dragClass: "drag",
  34. filter: ".no-sort",
  35. })
  36. new Sortable(document.getElementById("animated-sortable-demo"), {
  37. animation: 150,
  38. ghostClass: "ghost",
  39. dragClass: "drag",
  40. })
  41. new Sortable(document.getElementById("multi-drag-sortable-demo"), {
  42. multiDrag: true,
  43. animation: 150,
  44. ghostClass: "ghost",
  45. dragClass: "drag",
  46. selectedClass: "selected",
  47. })
  48. new Sortable(document.getElementById("swap-sortable-demo"), {
  49. swap: true,
  50. animation: 150,
  51. ghostClass: "ghost",
  52. dragClass: "drag",
  53. swapClass: "p-swap",
  54. })
  55. new Sortable(document.getElementById("grid-sortable-demo"), {
  56. animation: 150,
  57. ghostClass: "ghost",
  58. dragClass: "drag",
  59. })
  60. new Sortable(document.getElementById("grid-handle-sortable-demo"), {
  61. animation: 150,
  62. ghostClass: "ghost",
  63. dragClass: "drag",
  64. handle: "[data-handle]",
  65. })
  66. })