johnny / johnny/jquery-sortable

Prevent a drop at a particular item in the list.

Open
#145 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
1.5k
Forks
429
PR merge metrics
No merged PRs in 30d

Description

I want to exclude some items from being dropped at.

`

    `
    `
  1. item1
  2. `
    `
  3. item2
  4. `
    `
  5. item3
  6. `
    `
  7. item4
  8. `
    `
`

`isValidTarget` allows only for checking if the whole target container is droppable but I can't use it for a particular item in the container.

How can I retrieve id of the target item to be dropped at in `isValidTarget` in order to use it for preventing a drop in my customized `isValidTarget` function.

A code example would be a great help.

Sorry, English is not my strong asset.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.