webview-zig
webview-zig copied to clipboard
Bind and Dispatch examples
Hello!
I was just taking a look at the library and it isn't clear to me how binding should be used.
I thought it would just be try w.bind("testFn", testFn);, but then I'd be passing a function where it expects a struct that it can access .func on, and as a result it fails to compile.
I would appreciate it if there was an example for how binding works as part of the examples in the repo :)
Here it is bind 👍