-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Added right-click event handler. #741
Conversation
DamianOsipiuk
commented
Jul 17, 2017
- test added
- docs modified
- test added - docs modified
Is it Table only feature? |
I don't see any |
Yes, this is a |
Thanks for the PR! My only requests were alpha-sorting nits so I went ahead and made them myself 😄 |
@@ -25,6 +25,7 @@ This component expects explicit `width` and `height` parameters. | |||
| onHeaderClick | Function | | Callback invoked when a user clicks on a table header. `({ columnData: any, dataKey: string, event: Event }): void` | | |||
| onRowClick | Function | | Callback invoked when a user clicks on a table row. `({ event: Event, index: number, rowData: any }): void` | | |||
| onRowDoubleClick | Function | | Callback invoked when a user double-clicks on a table row. `({ event: Event, index: number, rowData: any }): void` | | |||
| onRowRightClick | Function | | Callback invoked when a user right-clicks on a table row. `({ event: Event, index: number, rowData: any }): void` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating docs too! 😄
nit: Docs should be alpha-sorted
3 | ||
]); | ||
}); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding a test 😁
@@ -12,14 +12,21 @@ export default function defaultRowRenderer({ | |||
key, | |||
onRowClick, | |||
onRowDoubleClick, | |||
onRowRightClick, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: alpha-sort
This feature has been released in version 9.10.0. Thank you for contributing! |