jsinterop.annotations

## Annotation Type JsMethod

    @Retention(value=RUNTIME)
     @Target(value=METHOD)
     @Documented
    public @interface JsMethod

JsMethod marks a method that will be directly translated into a JavaScript method preserving its name.

Note: In JavaScript, instance members are defined on the prototype and class members are defined on the constructor function of the type.

### Optional Element Summary

Optional Elements
`java.lang.String` `name` Customizes the name of the member in generated JavaScript.
`java.lang.String` `namespace` Customizes the namespace of the static member in generated JavaScript.

### Element Detail

#### name

    public abstract java.lang.String name

Customizes the name of the member in generated JavaScript. If not provided, the Java name will be used.

Default:
  "<auto>"

#### namespace

    public abstract java.lang.String namespace

Customizes the namespace of the static member in generated JavaScript. If none is provided, namespace is the enclosing class' fully qualified JavaScript name.

Default:
  "<auto>"