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

Callback on next/previous move? #16

Open
JocaPC opened this issue Oct 24, 2021 · 1 comment
Open

Callback on next/previous move? #16

JocaPC opened this issue Oct 24, 2021 · 1 comment

Comments

@JocaPC
Copy link

JocaPC commented Oct 24, 2021

Hi,

Thank you for the great component. I have a question or feature request.

Is it possible to define a JavaScript function that will be called whenever someone makes next/previous move? I would like to integrate your component with my page, and I need to change the page whenever someone makes a move.

I would like to integrate your component with other component and I need to call a function that will change something on a page whenever someone press on next move in the toolbar. I don't see that option, and it seems to me that it could be added here:

this.makeMove = function(noUpdate) {

If this option doesn't exist, would you be able to add it? I'm also willing to add this functionality because it seems trivial and I can send PR, but I would your guidance on how to name it and where to place it.

Thanks,
Jovan

@toomasr
Copy link
Owner

toomasr commented Oct 24, 2021

If you have a clear vision how to add it then do send a PR. I have not worked actively on the project and I believe we can get this added this way quicker.

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