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 
1129PI4299109.04.2003 00:00:0016537.85
2131CL44270512.03.2003 00:00:0022292.62
3131MA72456202.12.2004 00:00:0050025.35
4141AU36410119.07.2003 00:00:0036251.03
5141DB58321601.11.2004 00:00:0036140.38
6141DL46061819.05.2005 00:00:0046895.48
7141HJ3268630.01.2004 00:00:0059830.55
8141ID1096231.12.2004 00:00:00116208.4
9141IN44625825.03.2005 00:00:0065071.26
10141JE10547718.03.2005 00:00:00120166.58
Search