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
- HTML Builder - Main HTML Builder documentation
- HTML Builder Column - Column configuration