Annotation Type JavaScript


Annotates a class to inject a JavaScript URL into the web page. The annotation can be used on the AppLevel or the control level.
 
 @JavaScript(url = "http://www.example.com/script.js")
 @JavaScript(url = "http://www.example.com/script.js", top = 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 URL 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.
    A unique resource id.
    boolean
    A boolean value specifying whether this script is to be injected into the top level window of the page.
  • Element Details

    • url

      String url
      A JavaScript URL to be injected into this web page as a script element.
    • id

      String id
      A unique resource id. Can be used to avoid duplications
      Default:
      ""
    • top

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

      Attribute[] attributes
      A set of attributes to be added to the script element.
      Default:
      {}