You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in my web page, I use HTML custom tags and shadow DOM. I would like to use Binding.scala to render contents with bindings, but I have problem to add event handlers into custom tags.
In native JavaScript I have defined custom tag <top-menu-bar>. In Scala.js I have written this code:
Hi,
in my web page, I use HTML custom tags and shadow DOM. I would like to use Binding.scala to render contents with bindings, but I have problem to add event handlers into custom tags.
In native JavaScript I have defined custom tag
<top-menu-bar>
. In Scala.js I have written this code:Unfortunately, the compiler returns
type mismatch
If the attribute is without the
data:
prefix, it also does not work becausevalue onclick is not a member of org.scalajs.dom.raw.Element
Is it possible to add an event handler to a custom tag?
The text was updated successfully, but these errors were encountered: