Last active
December 2, 2020 22:13
-
-
Save armorpreston/5b62c7dbeb6a9a1cfe89a8115234bdd4 to your computer and use it in GitHub Desktop.
Brandkit/Components/Clipboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<clipboard-inline [textToCopy]="'Copy via Attribute'" | |
[targetClass]="'text-link'" | |
[showCopyButton]="false"> | |
I can copy without an input target! | |
</clipboard-inline> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<clipboard-inline>like this</clipboard-inline> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="input-group"> | |
<input type="text" class="form-control" id="textToCopy" value="Copy" /> | |
<div class="input-group-btn"> | |
<clipboard [buttonText]="'Copy'" [target]="'#textToCopy'"></clipboard> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<textarea class="form-control" id="exampleTextArea" rows="3">Copy this paragraph. </textarea> | |
<clipboard [buttonText]="'Copy'" [target]="'#exampleTextArea'"></clipboard> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment