-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "item" field to item.dropped event
Adds a new "item" field to the edx.drag_and_drop_v2.item.dropped event data. It contains the item text label when present, otherwise the item imageURL. This makes it consistent with the location field, which contains the zone text label.
- Loading branch information
Showing
7 changed files
with
184 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"zones": [ | ||
{ | ||
"width": 200, | ||
"title": "Zone 1", | ||
"height": 100, | ||
"y": "200", | ||
"x": "100", | ||
"uid": "zone-1" | ||
}, | ||
{ | ||
"width": 200, | ||
"title": "Zone 2", | ||
"height": 100, | ||
"y": 0, | ||
"x": 0, | ||
"uid": "zone-2" | ||
} | ||
], | ||
"items": [ | ||
{ | ||
"displayName": "Has name", | ||
"feedback": { | ||
"incorrect": "No", | ||
"correct": "Yes" | ||
}, | ||
"zones": [ | ||
"zone-1" | ||
], | ||
"imageURL": "", | ||
"id": 0 | ||
}, | ||
{ | ||
"displayName": "", | ||
"feedback": { | ||
"incorrect": "No", | ||
"correct": "Yes" | ||
}, | ||
"zone": "zone-2", | ||
"imageURL": "https://placehold.it/100x100", | ||
"id": 1 | ||
} | ||
], | ||
"feedback": { | ||
"start": "Start feedback", | ||
"finish": "Finish feedback" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters