Hi, good to see this group is alive :)
Can I ask another 2 questions?
1. How would I bind an event? In my case I want to handle a button click but the API is unclear to me. (this bytecode to JS thing is still a mystery to me ;))
I have the following code, but it gives me an error when clicked:
HTMLButtonElement button = HTMLButtonElement.$as(document.createElement("BUTTON"));
button.textContent.set("click me");
button.onclick.set((event) -> {
System.out.println("clicked " + event.toString());
return null;
});
My guess is I have to a $as for the lambda as well. But how?
2. I know that only a subset of the Java API is available, which is understandable from a technical and practical viewpoint. But is this easily extendible? For instance java.util.function.Consumer is not available to the runtime. What would it take to implement this on bck2brwsr?
Hope that you can shine a light on my questions.
Thanks
Mauro
Op dinsdag 20 augustus 2019 13:05:12 UTC+2 schreef Jaroslav Tulach: