Annotation Type InlineJavaScript


Annotates a class to inject a JavaScript content into the web page. The annotation can be used on the AppLevel or the control level.
 
 @InlineJavaScript(value = "alert('Hello World!');")
 @InlineJavaScript(value = "alert('Hello World!');", top = true)
 @InlineJavaScript(value = "js/script.js", local = true)
 
 
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
     
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    A JavaScript content to be injected into this web page as a script element.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    A set of attributes to be added to the script element.
    boolean
    A boolean value specifying whether this style is to be injected is in local file.
    boolean
    A boolean value specifying whether this script is to be injected into the top level window of the page.
  • Element Details

    • value

      String value
      A JavaScript content to be injected into this web page as a script element.
    • top

      boolean top
      A boolean value specifying whether this script is to be injected into the top level window of the page.
      Default:
      false
    • local

      boolean local
      A boolean value specifying whether this style is to be injected is in local file.
      Default:
      false
    • attributes

      Attribute[] attributes
      A set of attributes to be added to the script element. Attributes can be specified either as a string in the format "attr=value,attr=value" or as a HashMap containing key/value pairs.
      Default:
      {}