summaryrefslogtreecommitdiff
path: root/src/Columns/ButtonColumn.php
blob: 794b17517514225b05f61016fcdff7bf3abe30cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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'
        ];
    }

}