We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3edd2fa commit 8ee6049Copy full SHA for 8ee6049
resources/views/clipboard.blade.php
@@ -1,5 +1,6 @@
1
@props ([
2
- 'value',
+ 'value' => null,
3
+ 'alpineProperty' => null,
4
'class' => 'h-10 w-12',
5
'copyInput' => false,
6
'noStyling' => false,
@@ -22,10 +23,14 @@
22
23
$class,
24
])
25
tooltip-content="{{ $tooltipContent }}"
- @if($copyInput)
26
- x-on:click="copyFromInput('{{ $value }}')"
+ @if($alpineProperty)
27
+ x-on:click="copy({{ $alpineProperty }})"
28
@else
- x-on:click="copy('{{ $value }}')"
29
+ @if($copyInput)
30
+ x-on:click="copyFromInput('{{ $value }}')"
31
+ @else
32
+ x-on:click="copy('{{ $value }}')"
33
+ @endif
34
@endif
35
>
36
@unless ($withCheckmarks)
0 commit comments