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

how to make grid cell clickable(popup modal) to add event? #167

Open
boojes opened this issue Sep 28, 2024 · 2 comments
Open

how to make grid cell clickable(popup modal) to add event? #167

boojes opened this issue Sep 28, 2024 · 2 comments

Comments

@boojes
Copy link

boojes commented Sep 28, 2024

Hi, this project is awsome. I want to use it on my project, but im new in programing. Is any body here know how to make grid cell clickable so it makes more practical? Thanks

@zetanew
Copy link

zetanew commented Oct 5, 2024

onTileClick={(clickedResource) => console.log(clickedResource)}

in this line it triggers an arrow function, you can replace it with some modal component and its logic.After adding event you can trigger a re-render on modalClose phase. I think this will work

@boojes
Copy link
Author

boojes commented Oct 7, 2024

onTileClick={(clickedResource) => console.log(clickedResource)}

in this line it triggers an arrow function, you can replace it with some modal component and its logic.After adding event you can trigger a re-render on modalClose phase. I think this will work

thankyou for replies, i will try it.

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

No branches or pull requests

2 participants