summaryrefslogtreecommitdiff
path: root/src/Columns/ButtonColumn.php
blob: ffcfe617b8273051b0a9e25f54c561d7be9d54ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

declare(strict_types=1);

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',
        ];
    }
}