JavaScript code element properties

Open the Properties view in Document Studio and select a JavaScript code element. The Properties view displays these available properties for JavaScript codes.
Restriction: New feature icon The JavaScript code element is available only in version 2 templates.


General properties

In the All properties tab, these properties are located at the top-level, in the Metadata, and in the Formatting > Common sections.

Type Value Description
Tag String Tag name for the element. This property cannot be edited.
Name String The name of the element.
Description String A summary or note about this element.


Content properties

In the All properties tab, this property is located at the top-level as Content.

Type Value Description
Content String The text contained in the element which is visible in the output. Entering text here is the same as double-clicking on the element and entering text.

Specific properties

In the All properties tab, these properties are located in the Formatting > specific section.

Type Value Description
Library script true, false Optional. Default value: false

When set to true, the JavaScript content includes all other JavaScript expressions in the template.

Remember: When set to true for a JavaScript element, the element is ignored by Rational® Publishing Engine when processing the template.
Restriction: A library script cannot use variables or attributes. If variables or attributes are used, Rational Publishing Engine does not use the script as a library.

Feedback