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

Added right-click event handler. #741

Merged
merged 1 commit into from
Jul 17, 2017
Merged

Added right-click event handler. #741

merged 1 commit into from
Jul 17, 2017

Conversation

DamianOsipiuk
Copy link
Contributor

  • test added
  • docs modified

- test added
- docs modified
@TrySound
Copy link
Contributor

Is it Table only feature?

@DamianOsipiuk
Copy link
Contributor Author

I don't see any onClick events in other components both docs and sources.

@bvaughn
Copy link
Owner

bvaughn commented Jul 17, 2017

Yes, this is a Table only feature. Both List, Grid, Masonry, etc defer rendering of the outer cell to application code (so you can declare whatever event handlers you want directly on the rendered content).

@bvaughn bvaughn merged commit c8c81b8 into bvaughn:master Jul 17, 2017
@bvaughn
Copy link
Owner

bvaughn commented Jul 17, 2017

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` |
Copy link
Owner

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
]);
});
});
Copy link
Owner

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,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: alpha-sort

@bvaughn
Copy link
Owner

bvaughn commented Sep 18, 2017

This feature has been released in version 9.10.0. Thank you for contributing!

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

Successfully merging this pull request may close these issues.

3 participants