Property
|
Description
|
---|---|
id
|
The identifier for the widget. It would be validated when the mode is changed.
|
location
|
This property indicates the location of an external JavaScript file. Users can choose a JavaScript file in the whole workspace by the JS selector, or manually edit the location.
The values of 'location' and 'content' must not be empty at the same time. The value of 'content' overrides the value of 'location' when both are specified.
JS selector can list the JS files only under the default JS folder (and subfolders). To change the default JS folder, see Setting default JS folder path.
|
content
|
This property indicates the JavaScript code directly. Users can input the code in the multi-line text editor.
The values of 'location' and 'content' must not be empty at the same time. The value of 'content' overrides the value of 'location' when both are specified.
|
executeOnload
|
This property is a Boolean type property that indicates whether the JavaScript code gets ran when the page is on load. The default value is true.
|
inlineScript
|
This property is a Boolean type property that indicates whether the JavaScript codes can be loaded to the content property during the generation of the js file for a XUI page. The default value is false.
|