diff options
author | Sam Light <samlight1994@gmail.com> | 2024-12-27 23:04:40 +0000 |
---|---|---|
committer | Sam Light <samlight1994@gmail.com> | 2024-12-27 23:04:40 +0000 |
commit | b19d30c7ad5a041ccc42ca9542150c7b371fe4fe (patch) | |
tree | fcdba3b9681cef60e0e774e08c377d03c5d1defb /src/Columns/ButtonColumn.php | |
parent | 3c33b9201ee02d8b73986e489b9637d2875413de (diff) |
Lots of updates
Diffstat (limited to 'src/Columns/ButtonColumn.php')
-rw-r--r-- | src/Columns/ButtonColumn.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Columns/ButtonColumn.php b/src/Columns/ButtonColumn.php new file mode 100644 index 0000000..794b175 --- /dev/null +++ b/src/Columns/ButtonColumn.php @@ -0,0 +1,18 @@ +<?php + +namespace Lightscale\LaralightTables\Columns; + +use Illuminate\Database\Eloquent\Model; + +class ButtonColumn extends ElementColumn +{ + protected string $element = 'button'; + + protected function getElemAttributes(Model $row) : array + { + return parent::getElemAttributes($row) + [ + 'type' => 'button' + ]; + } + +} |