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

Can't hide/show FunctionFields #3

Open
ericwb opened this issue Jun 13, 2019 · 2 comments
Open

Can't hide/show FunctionFields #3

ericwb opened this issue Jun 13, 2019 · 2 comments

Comments

@ericwb
Copy link

ericwb commented Jun 13, 2019

If I use a FunctionField in the datagrid, for example:

<FunctionField label="resources.requests.fields.estimate" render={record => "$" + (record.airfare + record.transport + record.hotel + record.meals + record.conf_ticket + record.other)} />

I cannot choose to show/hide this field. Please add support to treat FunctionFields like any column in the table.

@aliang
Copy link

aliang commented Aug 21, 2019

I was able to make show/hide of FunctionField work by adding a source prop.

@ericwb
Copy link
Author

ericwb commented Aug 22, 2019

In my case, the function field is a computed value of several sources. So I can choose a source, but it only partially represent the data of the overall value. Plus, if I want the the user the ability to show/hide that source as a separate, non-FunctionField column, this will conflict with the other FunctionField as a duplicate.

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

No branches or pull requests

2 participants