Inline Editing
Inline editing - single click on any cell and begin editing.
public function inline_editing()
{
$xcrud = get_xcrud();
$xcrud->table_name('Payments - Single click cell to edit!');
$xcrud->table('payments');
$xcrud->unset_remove();
$xcrud->fields_inline('customerNumber,checkNumber,paymentDate,amount');//set the fields to allow inline editing
$xcrud->unset_edit();
$xcrud->set_logging(true);
$data['content'] = $xcrud->render();
return view('demos', $data);
}
Payments - Single click cell to edit!
Payments - Single click cell to edit!
# | Customernumber | Checknumber | Paymentdate | Amount | |
1 | 129 | PI42991 | 09.04.2003 00:00:00 | 16537.85 | |
2 | 131 | CL442705 | 12.03.2003 00:00:00 | 22292.62 | |
3 | 131 | MA724562 | 02.12.2004 00:00:00 | 50025.35 | |
4 | 141 | AU364101 | 19.07.2003 00:00:00 | 36251.03 | |
5 | 141 | DB583216 | 01.11.2004 00:00:00 | 36140.38 | |
6 | 141 | DL460618 | 19.05.2005 00:00:00 | 46895.48 | |
7 | 141 | HJ32686 | 30.01.2004 00:00:00 | 59830.55 | |
8 | 141 | ID10962 | 31.12.2004 00:00:00 | 116208.4 | |
9 | 141 | IN446258 | 25.03.2005 00:00:00 | 65071.26 | |
10 | 141 | JE105477 | 18.03.2005 00:00:00 | 120166.58 | |