Skip to content

Instantly share code, notes, and snippets.

@yuri91
Last active May 15, 2020 09:40
Show Gist options
  • Save yuri91/b9b2b7d3ffac50a59182d853bcc0e2b9 to your computer and use it in GitHub Desktop.
Save yuri91/b9b2b7d3ffac50a59182d853bcc0e2b9 to your computer and use it in GitHub Desktop.
Call methods on anyref values
#include <cheerp/client.h>
namespace [[cheerp::genericjs]] client {
void jsFunc(client::Element* elem);
}
[[cheerp::wasm]]
[[cheerp::jsexport]]
void callMethods(client::Element* elem)
{
elem->scroll(0.0, 10.0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment