Fixing some examples
This commit is contained in:
26
app/Tables/SubDepartmentsTable.php
Normal file
26
app/Tables/SubDepartmentsTable.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Tables;
|
||||
|
||||
use App\Models\SubDepartment;
|
||||
use Mmt\GenericTable\Components\Column;
|
||||
use Mmt\GenericTable\Components\ColumnCollection;
|
||||
use Mmt\GenericTable\Interfaces\IDragDropReordering;
|
||||
use Mmt\GenericTable\Interfaces\IGenericTable;
|
||||
use Mmt\GenericTable\Support\GenericTableSettings;
|
||||
|
||||
class SubDepartmentsTable implements IGenericTable
|
||||
{
|
||||
public GenericTableSettings $tableSettings;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$columns = new ColumnCollection();
|
||||
$columns->add(new Column("Id", 'id as uid'));
|
||||
$columns->add(new Column("Sub Department Name", 'name'));
|
||||
$columns->add(new Column("Status"));
|
||||
$columns->add(new Column("Department Name", 'department.name'));
|
||||
|
||||
$this->tableSettings = new GenericTableSettings(new SubDepartment(), $columns);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user