Skip to content

Commit 1252e56

Browse files
committed
fix: default overrides via options
1 parent d2ff2a6 commit 1252e56

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/Html/DataTableHtml.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ protected function getHtmlBuilder(): Builder
4444

4545
$this->htmlBuilder = app(Builder::class);
4646

47-
$this->htmlBuilder->postAjax($this->ajax());
47+
$this->htmlBuilder
48+
->postAjax($this->ajax())
49+
->setTableId($this->tableId)
50+
->selectSelector()
51+
->selectStyleOs()
52+
->addScript('datatables::functions.batch_remove');
4853

4954
$this->options($this->htmlBuilder);
5055

@@ -65,11 +70,7 @@ protected function getHtmlBuilder(): Builder
6570

6671
public function handle(): Builder
6772
{
68-
return $this->getHtmlBuilder()
69-
->setTableId($this->tableId)
70-
->selectSelector()
71-
->selectStyleOs()
72-
->addScript('datatables::functions.batch_remove');
73+
return $this->getHtmlBuilder();
7374
}
7475

7576
public function setHtmlBuilder(Builder $builder): static

0 commit comments

Comments
 (0)