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!

#CustomernumberChecknumberPaymentdateAmount 
1141ID1096231.12.2004 00:00:00116208.4
2141IN44625825.03.2005 00:00:0065071.26
3141JE10547718.03.2005 00:00:00120166.58
4141JN35528026.10.2003 00:00:0049539.37
5141JN72201025.02.2003 00:00:0040206.2
6141KT5257809.12.2003 00:00:0063843.55
7141MC4694609.07.2004 00:00:0035420.74
8141NU62770617.05.2004 00:00:0026155.91
9144IR84630312.12.2004 00:00:0036005.71
10144LA68567809.04.2003 00:00:007674.94
Search