Is there any special method for framework?
# doodle
a
Is there any special method for framework?
n
have you looked at the docs?
a
Yes but i'm not using doodle for current project. So i want to use javascript code in kotlin js.
n
link i shared is from Jetbrains about KotlinJS, not doodle.
a
Oh sorry, yeah i read the docs and created a simple project to test js code in kotlin js but nothing happening.
So I created an example.js file in the
src/main/resource
directory and created a function for adding two numbers. And using an external modifier, I created a function with the same name, but nothing happened at the time of use.
I also try by including the js file into the html file using script tag
If you have any simple sample project of js code working with kotlin then please provide me
n
i use interop with js in the DocApps main (used to expose apps to my tutorial docs). this works fine and let’s the functions be called from vanilla js that is loaded in a script tag. the kotlin is built using 1.7.21, and you can look at the build.gradle.kts etc to see how it’s setup. also, you can ask more questions in the #javascript channel.