callJsFunction

fun callJsFunction(jsBody: String, vararg args: JsonElement)

Calls a JavaScript function in the browser passing it the supplied arguments, which will be substituted into jsBody wherever a {} is present.

If your JavaScript needs to use an empty JavaScript map, just insert a space between the {}s, eg. { }

// @sample kweb.callJsFunction_sample