Calling Kotlin js function from href


#1

I can’t seem to figure it out. How could I call a function written in kotlin, whenever the user clicks on a href?


#2

It should look like <your-module-name>.<path-to-package>.<your-fun>.
Let’s suppose we have a module Baz with the following code:

package foo.bar

fun test() {}

So, to call test from js we should write Baz.foo.bar.test()


#3

Sorry for the late response (I needed to do something immidietly).
The suggested method works, thanks.