Open Sir-Genius opened 1 year ago
Going to submit a pull request now for this.
Well, maybe not, forking isn't working, might be a GitHub outage
I believe this would help having one definition of new ClipboardJS('.copy-button', ...)
to handle element that are or not in a modal.
Currently, it seems only one specific element can be passed to container
- allowing a function would be like target
or text
and allow more flexibility
Hey folks, there are some bugs that I will be contributing first to solve, but definitely, after them, I'll be considering all related proposals to triage and potentially work on them, okay? Thank you so much for proposing it.
It would be fantastic if we could pass a function with a trigger as an argument to the container option: