-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Ability to export specific columns #1567
Comments
@cagataycivici any plans on including something like this in a future release? I checked the roadmap and the only thing I saw related to export was "More export options like pdf and excel" |
Any update on this? |
Planned for 4.1.1. |
@cagataycivici @jdpearce Just to give info on my research of the component I'll lay this here. You can currently actually say which columns you want to export but it is slightly hacky (in my opinion) and definitely not recorded in the docs. As you can see here the exportCsv function is base don the data table and specifically makes sure you have data AND a column with the FIELD property that is truthy (e.g. not null / undefined /empty string). Because of this you can actually do something sneaky and say in html
in component
so instead of just calling dt.exportCSV() I've done some pre processing the datatable's data that it uses in the export function. What would probably be preferable is there are API settings that hook into this function that only show fields based on either callback criteria or setting criteria. But this works fine currently. |
Any news on this feature? |
Planned for 4.1.1 |
Thanks |
Was this implemented in 4.1.1? |
No, We rescheduled it for another release 4.1.2 Regards |
I made a response about being able to export a specific column. Basically
if it is hidden it won't get exported so you can. Loop though on export and
hide the ones you don't want exported
…On Thu, Jul 20, 2017, 7:04 AM Mertcan Diken ***@***.***> wrote:
No, We rescheduled it for another release 4.1.2
Regards
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1567 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMPLtbjqTtdSX8eZDu1ouHXbDXC9uWBKks5sPzQogaJpZM4LKsK2>
.
|
@kenisteward although it works is not ideal |
It gives you the funtional you want that was thought to not exist. That
makes it ideal for me at least. Until either they start accepting pr or
they implement it themselves
…On Thu, Jul 20, 2017, 7:15 AM pantonis ***@***.***> wrote:
@kenisteward <https://github.com/kenisteward> although it works is not
ideal
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1567 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMPLtc_UAbsrNb59ZEYcmP6_B9mhIYFbks5sPza5gaJpZM4LKsK2>
.
|
@Mrtcndkn did you implement it in 4.1.2? |
Is this a feature now? I haven't been able to find the documentation. Update: noticed the link to the check-in, got it. so for example if anyone else finds their way here:
|
@saunandrea exactly |
I'm submitting a ...
I'd like the capability to export only selected columns from the DataTable.
e.g.
dt.exportCSV(['columnTwo', 'columnFour'])
As it currently stands, it is impossible to select only the content of a single column for cut and paste, custom export would solve this in lieu of cell selection (and probably be easier to implement)
The text was updated successfully, but these errors were encountered: