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

Component: Table #13965

Closed
ac030540 opened this issue Oct 26, 2023 · 1 comment
Closed

Component: Table #13965

ac030540 opened this issue Oct 26, 2023 · 1 comment
Labels
Resolution: Stale Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@ac030540
Copy link

Describe the bug

The ObjectUtils.resolveFieldData method used to get the value based on the field and rowData allows field to be a function. However, when I pass field as a function, the filter method in the table component doesn't work. The problem is that the filter method in table component sets the filters object with field as a key and the value as the corresponding metadata. This makes the field function a string and we no longer get any filtered value as a result.

Environment

Production

Reproducer

No response

Angular version

16.1.1

PrimeNG version

16.15.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

14.15.1

Browser(s)

No response

Steps to reproduce the behavior

Pass field as a function in columns of table component

Expected behavior

All the functionality of the table component including filter should work as expected

@ac030540 ac030540 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 26, 2023
Copy link

This issue has been automatically marked as stale due to a lack of activity. If this issue is still relevant to you, please leave a comment so we can keep it open. We apologize for not being able to prioritize it sooner. If you have any new information or questions, please share them in your comment!

@github-actions github-actions bot added the Resolution: Stale Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Stale Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants