Skip to content
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

Alternative data and accessor definitions #23

Open
doguhanokumus opened this issue May 15, 2017 · 3 comments
Open

Alternative data and accessor definitions #23

doguhanokumus opened this issue May 15, 2017 · 3 comments
Labels

Comments

@doguhanokumus
Copy link

doguhanokumus commented May 15, 2017

Greetings and thank you for this library.

My suggestion is based on another library tannerlinsley/react-table.

My need is to customize the headers and values based on similar config of columns.

In react-table library I am able to define every column, their headers and accessors.

{ header: 'Custom Title', accessor: 'field' }
or
{ header: 'Custom Title', render: (row) => row.field }

This way it becomes easy to create visually better exports. Otherwise, I need to reformat all the data and run 10k lines again to visually format what I actually want to export.

i.e. for a date field, I want the title to be 'Example Date' and the value to be formatted as dd.MM.yyyy HH:mm:ss but for json and array outputs I need to evaluate every single row in every report I want to export.

@abdennour
Copy link
Collaborator

abdennour commented May 15, 2017

Welcome @doguhanokumus . This is really a great feature.
Even I am busy in this period, I will try my best to implement this feature.
In the mean while, I welcome any contribution from community.

@doguhanokumus
Copy link
Author

Hey @abdennour, I'd like to help out to make this faster. Did you start on anything?
How and where in the project should I contribute?

We can either 'hack' to make this process within the component or make a plan about how this will be implemented.

@skatheriya
Copy link

Hey @doguhanokumus, Is this customization feature implemented?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants