diff options
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' + ]; + } + +} |