Skip to content

Allow displaying multiple download buttons, one for each source element.#2

Open
johanmynhardt wants to merge 4 commits into
neuron-digital:masterfrom
PubToolBox:master
Open

Allow displaying multiple download buttons, one for each source element.#2
johanmynhardt wants to merge 4 commits into
neuron-digital:masterfrom
PubToolBox:master

Conversation

@johanmynhardt

Copy link
Copy Markdown

This PR will add the feature in which a download button is added for each source the player has, if configured as such.

Specify 'allDownloads: true' in the options when configuring the plugin.

For example:

    player.downloadButton({text: 'Download me!', allDownloads: true})
When allDownloads is not requested, source is an array containing a single
object created from player.currentSrc() and player.currentType().

This allows using the same code whether a single download or all downloads
are used for creating a Download button.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant