Fixes
This commit is contained in:
@@ -87,10 +87,7 @@ class ParentDataTable extends DataTable
|
||||
->minifiedAjax()
|
||||
->dom($this->getDom())
|
||||
->orderBy(0,'asc')
|
||||
->buttons(
|
||||
Button::make('export'),
|
||||
Button::make('print')
|
||||
);
|
||||
->buttons($this->getDatatablesButtons());
|
||||
}
|
||||
|
||||
public function getParameters()
|
||||
@@ -98,6 +95,14 @@ class ParentDataTable extends DataTable
|
||||
return [];
|
||||
}
|
||||
|
||||
public function getDatatablesButtons()
|
||||
{
|
||||
$buttons = [];
|
||||
$buttons[] = Button::make('export');
|
||||
$buttons[] = Button::make('print');
|
||||
return $buttons;
|
||||
}
|
||||
|
||||
public function getDom()
|
||||
{
|
||||
$dom = $this->getDatatablesHeaderDefault();
|
||||
|
||||
Reference in New Issue
Block a user