Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Copy icons to clipboard on click #30

Closed
guastallaigor opened this issue Dec 5, 2018 · 1 comment
Closed

[Feature request] Copy icons to clipboard on click #30

guastallaigor opened this issue Dec 5, 2018 · 1 comment

Comments

@guastallaigor
Copy link
Contributor

guastallaigor commented Dec 5, 2018

What problem does this feature solve?

Basically I think it would be nice to click an icon and have the icon name copied to clipboard inside the docs #baseIcon.

What is your proposed solution?

The only way I know how to do with plain JS it's to add an @click that calls a method inside the GuideBaseIcons.vue, create a temporarily textarea element, copy the icon's name to that textarea, exec the copy command and remove the textarea.


Note: If you want this feature request I the code for this, and I can make a PR for you to see.

@LeCoupa
Copy link
Owner

LeCoupa commented Dec 6, 2018

That's a good idea. I think we should use this:

https://www.npmjs.com/package/vue-clipboard2

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

No branches or pull requests

2 participants