-
Notifications
You must be signed in to change notification settings - Fork 911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
customize columns to export #714
Comments
Hello @dj-fiorex the Export functionality as actually handled by DataTables. Looking at the code for the view it is exporting any tables that are "visible."
What you are probably going to have to do is overwrite that view file and change it to a custom attribute that you set for each column within your controller. The file is Sorry i cannot give you an example as I am on the phone currently. |
first of all thanks for the reply :) i looked at the code but i don't understand how the
and then change |
Hi, so the There is more documentation on how DatsTables selects columns here: https://datatables.net/reference/type/column-selector |
i have read the documentation about datatable, i also try to modify my select.blade.php to add a class on td element
and then add a !!UPDATE!! |
Ok i found how to do it!
and line 166
finally add to your columns definition in crudcontroller
Thanks for the help! |
Glad you got it working. Sorry i couldnt help more have been at work the entire time and only have my phone. |
don't worry! you give me the input to start coding ahahah. |
I think adding a reference to #960 in here should also help future users that need this.. |
Hi all, first of all thanks for this magic package :) i want to know if i can customize the action of the button inserted in datatable via
$this->crud->enableExportButton()
, for example i don't want to print the action column in the pdf. How can i archieve this?Thanks!
The text was updated successfully, but these errors were encountered: