You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: recipe/0599-drag-and-drop/index.md
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,11 +20,7 @@ How do you implement the pattern?
20
20
21
21
## Restrictions
22
22
23
-
When is this pattern is usable / not usable? Is it deprecated? If it uses multiple specifications, which versions are needed, etc.?
24
-
25
-
Delete this section if it is not needed.
26
-
If you don't know what the restrictions might be initially, just leave the following line:
27
-
**Unknown - Help Needed**
23
+
Implementing this recipe requires a resource provider and a viewer provider each to implement their part. The resource provider must have a draggable item that can have a `dataTransfer.setData` method attached to the item's `dragstart` event and the viewer provider must have an interface capable of handling the data in its `drop` event.
28
24
29
25
## Example
30
26
@@ -33,7 +29,7 @@ The example json document must be an external document, and imported with the fo
33
29
34
30
{% include manifest_links.html viewers="" manifest="manifest.json" %}
35
31
36
-
<imgsrc="https://iiif.io/api/image/3.0/example/reference/899da506920824588764bc12b10fc800-bnf_chateauroux/full/!500,500/0/default.jpg"draggable="true"ondragstart="drag(event)"alt="IIIF logo; drag and drop onto a supporting viewer to see this resource in that viewer">
32
+
<imgsrc="https://iiif.io/api/cookbook/assets/images/logos/logo-sm.png"draggable="true"ondragstart="drag(event)"alt="IIIF logo; drag and drop onto a supporting viewer to see this resource in that viewer">
0 commit comments