lichess-org / chessground

Mobile/Web chess UI for lichess.org
https://lichess.org
GNU General Public License v3.0
1.04k stars 261 forks source link

Discussion: Calling a custom function on board.set() #228

Closed coffeeDev98 closed 2 years ago

coffeeDev98 commented 2 years ago

Hi, Great work on the library!! Just had a doubt... Is there any way to call a custom function on board.set?

niklasf commented 2 years ago

This is relatively straight forward with a wrapper, right? I see how a hook could be more elegant in some cases, but generally the API is kept to the minimum needed by Lichess itself.