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

There should be an onSelect or onReady prop for the grid component. #277

Closed
maxxrdrgz opened this issue Mar 19, 2021 · 4 comments
Closed
Labels
wontfix This will not be worked on

Comments

@maxxrdrgz
Copy link

maxxrdrgz commented Mar 19, 2021

If there was a prop to handle the selection on ready event as mentioned here:
https://gridjs.io/docs/examples/selection-events

That'd make my life pretty easy, otherwise I don't know how to use the on ready event.

Something like so:

foo = () = {
//do stuff
}

<Grid
data={data}
columns={columns}
search
pagination={{
limit: 5,
}}
onSelect={this.foo}
/>

@LightwithoutLisonlyight

Same problem but with onClick / onRowClick

@LightwithoutLisonlyight
Copy link

LightwithoutLisonlyight commented May 2, 2021

@maxxrdrgz I think this could help you
Originally posted by @lamilsage in grid-js/gridjs#502 (comment)

@maxxrdrgz
Copy link
Author

@LightwithoutLisonlyight thanks. However, I ended up swapping out my library for this: https://www.npmjs.com/package/react-data-table-component

@stale
Copy link

stale bot commented Jun 2, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Jun 2, 2021
@stale stale bot closed this as completed Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants