Skip to content
Icon

WARNING You're browsing the documentation for an upcoming version of Laravel DataTables. The documentation and features of this release are subject to change.

HTML Builder Action Column

The addAction() method provides a quick way to add an action column to your DataTable.


Basic Usage

use Yajra\DataTables\Html\Builder;
 
$html = $builder->addAction();

With Custom Attributes

use Yajra\DataTables\Html\Builder;
 
$html = $builder->addAction([
'title' => 'Actions',
'width' => '100px',
]);

Default Attributes

[
'defaultContent' => '',
'data' => 'action',
'name' => 'action',
'title' => 'Action',
'render' => null,
'orderable' => false,
'searchable' => false,
'exportable' => false,
'printable' => true,
'footer' => '',
]

See Also