added copy-to-clipboard directive that does not require Flash
This commit is contained in:
parent
6ed5235dfd
commit
062c1a1626
13 changed files with 186 additions and 74 deletions
|
@ -1,11 +1,12 @@
|
|||
<div class="copy-box-element" ng-class="disabled ? 'disabled' : ''">
|
||||
<div class="id-container">
|
||||
<div class="copy-container">
|
||||
<input type="text" class="form-control" value="{{ value }}" readonly>
|
||||
<span class="copy-icon" data-title="Copy to Clipboard"
|
||||
data-container="body"
|
||||
data-placement="bottom"
|
||||
bs-tooltip>
|
||||
<input id="{{ ::inputId }}" type="text" class="form-control"
|
||||
value="{{ ::value }}"
|
||||
readonly>
|
||||
<span class="copy-icon"
|
||||
clipboard-copy="#{{ ::inputId }}"
|
||||
data-title="Copy to Clipboard" data-container="body" data-placement="bottom" bs-tooltip>
|
||||
<i class="fa fa-clipboard"></i>
|
||||
</span>
|
||||
</div>
|
||||
|
|
Reference in a new issue