inlineEditFields
inlineEditFields(array $inlineEditFields)
The fields that will have inline quick edit functionality with double-click on datagrid. For example:
$crud->inlineEditFields(['first_name', 'last_name', 'fullname', 'address'])
You can see a full working example below:
$crud->setTable('customers');
$crud->setSubject('Customer', 'Customers');
$crud->fieldType('creditLimit', 'numeric');
$crud->columns(['customerName','phone','addressLine1','creditLimit']);
$crud->inlineEditFields(['customerName','phone','addressLine1','creditLimit']);
$output = $crud->render();
You can see the result of the above code below. Try to double-click on any of the fields that you specified in
the inlineEditFields
function. You will notice that the field will become instantly editable and a save button will
appear next to it.