How to Select a Different Scripting Language

From Documentation
Revision as of 10:35, 19 January 2022 by Hawk (talk | contribs) (correct highlight (via JWB))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
How to Select a Different Scripting Language


Stop.png This documentation is for an older version of ZK. For the latest one, please click here.


A page could have scripts in multiple different scripting language.

<button onClick="javascript:do_something_in_js()"/>
<zscript language="groovy">
	do_something_in_Groovy();
</zscript>

If the scripting language is omitted, Java is assumed. If you'd like to change the default scripting language, use the page directive as follows.

<?page zscriptLanguage="Groovy"?>

<zscript>
	def name = "Hello World!";
</zscript>



Last Update : 2022/01/19

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.