Skip to content

Download event for openseadragon downloads? #1523

Description

@sarangj

Hi! I'd love to be able to hook into a IIIFEvents.DOWNLOAD event when clicking on a download link on the openseadragon download dialogue. Inspecting the code, it looks like it would be implemented pretty simply as a callback similar to:

onDownloadSelection: () => {
this.closeActiveDialogue();
this.extensionHost.publish(IIIFEvents.SHOW_MULTISELECT_DIALOGUE);
},

Then, we'd just need to add the callback in this button's onclick:

<button
onClick={() => {
window.open(rendering.id, "_blank");
}}
>

Would this make sense? Happy to implement it myself, but wanted to open this up to see if this is a sensible approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions