Closed yuki-katayama closed 3 months ago
@lukasoppermann
hi, is this project already finished?
If you find this pull request unnecessary, or if further modifications are required, please feel free to reject or suggest necessary revisions.
Sorry for the delay. Looks good @yuki-katayama just one comment.
@lukasoppermann
Description
This issue aims to address two main changes to improve the functionality of the HTML5Sortable library:
Enhancement of Custom Drag Image Selection: Extend the
sortable
function to allowcustomDragImage
option to accept a string selector, in addition to the existing function type. This enhancement will make it more flexible for users to specify custom drag images directly via CSS selectors.Testing for Custom Drag Image: Implement tests to ensure that custom drag images defined by CSS selectors are correctly applied, and to handle cases where the selector does not match any elements, ensuring the code robustness.
Tasks
sortable
function to handle string selectors forcustomDragImage
.setDragImage
function to properly handle NodeList objects derived from string selectors.Related Issues
issue#271
Implementation Video
using code
Test results