Skip to content

Latest commit

 

History

History
15 lines (15 loc) · 1.27 KB

2023-03-09-slider-images-drag-and-drop.md

File metadata and controls

15 lines (15 loc) · 1.27 KB
title issue
Slider Images Drag & Drop
NEXT-10244

Administration

  • Added moveItem method in /core/service/util.service.ts to sort when drag and drop item.
  • Changed in app/asyncComponent/media/sw-media-list-selection-v2/index.js
    • Changed mediaItems computed to add position index to image.
    • Added onMediaItemDragSort method to handle drag and drop item.
  • Added v-draggable and v-droppable properties in /app/asyncComponent/media/sw-media-list-selection-v2/sw-media-list-selection-v2.html.twig to handle drag and drop item.
  • Added item-sort event in module/sw-cms/elements/image-gallery/config/sw-cms-el-config-image-gallery.html.twig to handle drag and drop item event of Image gallery.
  • Added onItemSort method in /module/sw-cms/elements/image-gallery/config/index.js to handle drag and drop item of Image gallery.
  • Added item-sort event in module/sw-cms/elements/image-slider/config/sw-cms-el-config-image-slider.html.twig to handle drag and drop item event of Image Slider.
  • Added onItemSort method in /module/sw-cms/elements/image-slider/config/index.js to handle drag and drop item of Image Slider.
  • Changed scss in /app/asyncComponent/media/sw-media-list-selection-item-v2/sw-media-list-selection-item-v2.scss to keep the drag item ratio.