In case you've missed it, you are looking at an older version of the website. Checkout our latest version, we promise you will love it 😍

unset_export

void unset_export()
Quick Description: Unset the export button and don't let the user to use this functionality.
Available for version >= 1.3

Unset the export button and don't let the user to use this functionality.

Example:

function example_with_unset_export()
{
    $crud = new grocery_CRUD();
 
    $crud->set_table('customers')
        ->set_subject('Customer')
        ->columns('customerName','contactLastName','phone','city','country','creditLimit');
 
    $crud->fields('customerName','contactLastName','phone','city','country','creditLimit');
    $crud->required_fields('customerName','contactLastName');
 
    $crud->unset_export();
 
    $output = $crud->render();
 
    $this->_example_output($output);
}
Note: The below example is an iframe so it might appeared with a scroll bar. If you like you can view the example on a new tab