Problem:

The Drupal.registerLpbMoveError function provides an API for registering functions that are used by dragula's accepts callback to prevent components from being dropped into particular containers.

Similarly, developers should have a way to register functions that are used by dragula's moves callback.

(See https://github.com/bevacqua/dragula for usage of both accepts and moves callbacks.)

Proposed solution:

Modify Drupal.registerLpbMoveError to accept a second parameter, specifying the callback to use (i.e. "accepts" or "moves"), with "accepts" being the default to support backwards compatibility.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

justin2pin created an issue. See original summary.

  • justin2pin committed 9d46d1a5 on 2.1.x
    Issue #3474006: JS API for dragula moves callback
    
justin2pin’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.