Last active
May 15, 2020 09:40
-
-
Save yuri91/b9b2b7d3ffac50a59182d853bcc0e2b9 to your computer and use it in GitHub Desktop.
Call methods on anyref values
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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