arrow-js icon indicating copy to clipboard operation
arrow-js copied to clipboard

Pass custom arrow image URL

Open epalmans opened this issue 6 years ago • 0 comments

Exposes a second optional parameter to the show() method which allows to override the default orange one. Works by removing the original node and events from the DOM first; then regenerates it using _initArrow().

Example usage: <a href="#" onclick="Arrow.show(5000, 'https://i.imgur.com/MZRB3eb.png')">Download</a>

Note:

  • not provided: jsdoc
  • not provided: tests
  • you may want to consider passing a config. object to the show() method

epalmans avatar Dec 11 '18 11:12 epalmans