feat(component): add reusability action table button
This commit is contained in:
parent
0cab8d3373
commit
ec941e9390
7
resources/views/components/datatables/delete.blade.php
Normal file
7
resources/views/components/datatables/delete.blade.php
Normal file
@ -0,0 +1,7 @@
|
||||
<flux:modal.trigger name="delete">
|
||||
<flux:tooltip content="Hapus">
|
||||
<flux:button href="javascript:void(0)" variant="danger" icon="trash" size="sm"
|
||||
wire:click="$dispatch('fn:confirmDelete', {id: '{{ $id }}'})">
|
||||
</flux:button>
|
||||
</flux:tooltip>
|
||||
</flux:modal.trigger>
|
||||
4
resources/views/components/datatables/edit.blade.php
Normal file
4
resources/views/components/datatables/edit.blade.php
Normal file
@ -0,0 +1,4 @@
|
||||
<flux:tooltip content="Ubah">
|
||||
<flux:button href="{{ $editRoute }}" wire:navigate.hover variant="primary" color="yellow" icon="pencil-square"
|
||||
size="sm"></flux:button>
|
||||
</flux:tooltip>
|
||||
Loading…
Reference in New Issue
Block a user