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

Cannot get data from a row in the Table component to put in Row Action #15216

Open
hkim-jadehealth opened this issue Dec 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@hkim-jadehealth
Copy link

We need to implement the below steps:

Load data from REST API to Table component.
Each row in the table needs to have a Delete and Edit button:

  • Edit button: On-click, needs to show the Modal with info from the row that was clicked on
  • Delete button: On-click, this should execute an API to delete that row by id of that record

My problems are:

  • For Edit button, I binded from SelectedRow in Table to form fields in Modal; while designing, the data shows correctly, but in Preview, this doesn't work.
  • For Delete button, similar to the Edit button where that I binded id field of SelectedRow in the Table to my API request, but it didn't work.

It seems the data of SelectedRow couldn't show up in Modal or send to Action of Delete button.

@hkim-jadehealth hkim-jadehealth added the bug Something isn't working label Dec 18, 2024
Copy link

linear bot commented Dec 18, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant