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
I use KotlinPlayground in a small project to show students code and allow them to edit it (without the hassle to deal with any special code editors). It works great so far - thanks for this great tool.
However, I want to change the code in an existing KotlinPlayground instance (received by using getInstance) programmatically from JavaScript. I tried instance.update({code: "..."}) and to reinitialize the playground but none of the approaches worked. Is there an (easy) way to do this?
The text was updated successfully, but these errors were encountered:
But, i can not recommend it to use. Cause it's private part API and, possibly, it will change in the near future.
The plan is add instance.setCode(code); like a public method.
I use KotlinPlayground in a small project to show students code and allow them to edit it (without the hassle to deal with any special code editors). It works great so far - thanks for this great tool.
However, I want to change the code in an existing KotlinPlayground instance (received by using getInstance) programmatically from JavaScript. I tried instance.update({code: "..."}) and to reinitialize the playground but none of the approaches worked. Is there an (easy) way to do this?
The text was updated successfully, but these errors were encountered: