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 | 141 | ID10962 | 31.12.2004 00:00:00 | 116208.4 | |
2 | 141 | IN446258 | 25.03.2005 00:00:00 | 65071.26 | |
3 | 141 | JE105477 | 18.03.2005 00:00:00 | 120166.58 | |
4 | 141 | JN355280 | 26.10.2003 00:00:00 | 49539.37 | |
5 | 141 | JN722010 | 25.02.2003 00:00:00 | 40206.2 | |
6 | 141 | KT52578 | 09.12.2003 00:00:00 | 63843.55 | |
7 | 141 | MC46946 | 09.07.2004 00:00:00 | 35420.74 | |
8 | 141 | NU627706 | 17.05.2004 00:00:00 | 26155.91 | |
9 | 144 | IR846303 | 12.12.2004 00:00:00 | 36005.71 | |
10 | 144 | LA685678 | 09.04.2003 00:00:00 | 7674.94 | |