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

The Table component don't support rowClick event and receive params like column's data? #834

Closed
1 task done
Kuro-P opened this issue Jun 3, 2019 · 4 comments
Closed
1 task done

Comments

@Kuro-P
Copy link

Kuro-P commented Jun 3, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

About Table component, when i click row, i want to do sth with current column data;
I found 'customRow: onClick' event in document,but i can't get current column data on click event with params...

What does the proposed API look like?

The React antDesign UI frame(https://ice.work/component/table): Table -> onRowClick event

@davidschrooten
Copy link

Perhaps you can use slots. Then add record to the slot-scope so you have access to the full record of the iteration.

@Gavin-Gong
Copy link

use customRow prop

<a-table :customRow="customRow"></a-table>
function customRow(record) {
      return {
        on: {
          click: event => {
            console.log(event, record);
          }
        }
      };
    }

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants