Skip to content

Commit

Permalink
add getView method
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickweh committed Nov 17, 2024
1 parent 9824dee commit 77f38a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/DataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,12 @@ public function loadFilter(array $properties): void

public function render(): View|Factory|Application|null
{
return view($this->view, $this->getViewData());
return view($this->getView(), $this->getViewData());
}

protected function getView(): string
{
return $this->view;
}

protected function getViewData(): array
Expand Down

0 comments on commit 77f38a3

Please sign in to comment.