Skip to content

Commit

Permalink
Update DatatableClass.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSantiago82 committed Apr 4, 2022
1 parent 4c3da64 commit 8abe5a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Classes/DatatableClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class DatatableClass
public $Result = [];
protected $hasString;

public function tableColumn($key, $columnName)
public function tableColumn($key, $columnName, $model = null)
{
$this->Result['Columns'][$key]['columnName'] = $columnName;
$this->Result['Columns'][$key]['type'] = null;
Expand All @@ -21,6 +21,8 @@ public function tableColumn($key, $columnName)
$this->Result['Columns'][$key]['limit'] = null;
$this->Result['Columns'][$key]['sort'] = true;
$this->Result['Columns'][$key]['search'] = true;
$this->Result['Columns'][$key]['model'] = model;


$this->buildKey($columnName);
}
Expand Down

0 comments on commit 8abe5a0

Please sign in to comment.