JScode

This tag adds code using JavaScript events in the application. SilkBuilder will collect the code in a JScode component and put it together regardless of where it has been defined.

The code in JScode is executed immediately after being loaded and is usually used to define JavaScript objects. When this code is executed, Silk Components may not be available or initialized.

Tag Definition

Used standalone:

<silk:JScode
  renderIf=""
  desc=""
/>

Used as a container:

<silk:JScode
  renderIf=""
  desc=""
>
   Contains: JavaScript code.
</silk:JScode>

Properties

renderIf

It contains the logic sentence defining whether the component should be rendered. The logic statement's explanation is in the Server Code Logic documentation. Default Value: Empty.

desc

Defines a title of description used only for documentation or code categorization purposes. Default Value: Empty.

Last updated