H5P Core List component: Add trigger on list item moved

Description

Acceptance criteria

  • Code is fine.

Background

Currently, when someone wants to create a custom editor widget that relies on information about the state of H5P Core’s List widget, one can get notified when an item is added or when an item is removed, but not when an item is moved. This makes it terrible for developers who need that piece of information. They need to come up with a lengthy custom workaround with polling or observing the DOM in order to learn about changes in the order of list items.

Suggestion

This one-liner that does not break anything and has been hanging in the air since May 2020 would allow developers to simply listen for an appropriate event that informs about an item being moved from position x to position y:

Acceptance Criteria

None

Activity

Details

Assignee

Reporter

Priority

Created September 5, 2023 at 9:52 AM
Updated September 5, 2023 at 9:52 AM