unsetExportExcel

unsetExportExcel(void)

The method unsetExportExcel is removing only the "Excel" export button from the datagrid.

Example

At the below example press the button "Export" to see that we have only one option available.

$crud->setTable('customers');
$crud->setSubject('Customer', 'Customers');
$crud->columns(['customerName','phone','addressLine1','creditLimit']);

// Removes only the excel button on export
$crud->unsetExportExcel();

$output = $crud->render();