quick.js has been used by sciter-js-sdk
fuyoo opened this issue · 6 comments
fuyoo commented
Those tis based examples don't work in the new SDK.
Do you have any plans to adapt the new SDK?
fuyoo commented
i'm can't find a way to call the rust func in the javascript file..
i am try interop example
const view = Window.this
view. calc_sum()
the console tell me method undefined.
superblaubeere27 commented
How did you solve this?
fuyoo commented
How did you solve this?
at the rust side impl
impl sciter::EventHandler for EventHandler {
fn get_subscription(&mut self) -> Option<sciter::dom::event::EVENT_GROUPS> {
Some(sciter::dom::event::default_events() | sciter::dom::event::EVENT_GROUPS::HANDLE_METHOD_CALL)
}
at the view side:
const view = Window.this
view.xcall("sum",1, 2);
detail at here #96
and the sciter.js doc at here doc
pravic commented
default_events()
should be adjusted to cover JS. Will do.
fuyoo commented
default_events()
should be adjusted to cover JS. Will do.
that's great, thank's a lot!
SonnyX commented
Might be nice to release the version with the fix on crates.io :)