javascript

From Documentation
Revision as of 06:17, 19 November 2010 by Tomyeh (talk | contribs) (Created page with '{{ZKDevelopersReferencePageHeader}} '''Syntax:''' <javascript package="''pkg_name''" [merge="'''false'''|true"]/> <javascript src="''a_uri''"/> It specifies the JavaScript pa…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Syntax:

<javascript package="pkg_name" [merge="false|true"]/>
<javascript src="a_uri"/>

It specifies the JavaScript package or file that has to be loaded to the client. Notice that, if specified, it is always loaded, no matter if it is required or not.

Example,

<javascript package="zul.box"/>

package

[Optional]

It specifies the package to load.

src

[Optional]

It specifies the URI of the JavaScript file to load. The URI could contain ~./ (such as "~./foo/whatever.js") to load a JavaScript file from the classpath.

merge

[Optional][Default: false]

It is used with the package attribute to specify whether the package shall be loaded as part of the zk package. If not specified, each package will be loaded separatedly. It speed up the loading if we merge several packages into one.

Version History

Last Update : 2010/11/19


Version Date Content
     



Last Update : 2010/11/19

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