Tabulator Simple
Tabulator, simple display with movable columns.
public function tabulator_simple()
{
$xcrud = get_xcrud();
$xcrud->table('payments');
$xcrud->label('checkNumber','Check No');
$xcrud->label('paymentDate','Payment Date');
$xcrud->label('customerNumber','Customer Number');
$xcrud->label('amount','Amount');
$xcrud->columns('paymentDate,customerNumber,checkNumber,amount');
$xcrud->column_width('checkNumber','35%');
$xcrud->column_width('paymentDate','25%');
$xcrud->column_width('action','30%');
$xcrud->tabulator_active(true);
$xcrud->tabulator_main_properties('
movableColumns: true,
headerVisible:true,
width: "100%",
height: "400px",
groupStartOpen:true,
placeholder:"No Data Available",
tooltipsHeader:true,
tooltips:true'); //'layout: "fitColumns",
$data['content'] = $xcrud->render();
return view('demos', $data);
}