```val sortDom = document.querySelector("thead th ...
# javascript
p
Copy code
val sortDom = document.querySelector("thead th span") as SPAN
sortDom.click() // Why is there no click() method?! It works in browser.
b
what do you mean there's no click? Do you mean compiler errors or method not doing what you want? If it's the first option it might be that DSL simply didn't generate bindings for it. You can always do
sortDom.asDynamic().click()
p
yup, compiler error
Unresolved reference: click
. Ok,I'll have to resort to the
dynamic
way.
t
You should cast to
HTMLSpanElement
instead of
SPAN
.
👍 1
👍🏻 1