Skip to content

Commit 9b15243

Browse files
Mention of "generateJsInteropExports" option within the DevGuideCodingBasicsJsInterop.md page (#378)
1 parent e012c8f commit 9b15243

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/markdown/doc/latest/DevGuideCodingBasicsJsInterop.md

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ JsInterop is one of the core features of GWT 2.8. As the name suggests, JsIntero
88

99
JsInterop can be used to expose a Java type to be used externally from a JavaScript script (aka a non-native type). This can be achieved by annotating the type with `@JsType`. This annotation exposes all the public non-static fields and methods, and tells the GWT compiler that the type is to be exported to a JavaScript type. Annotating a class with `@JsType` is equivalent to annotating all its public non-static methods with `@JsMethod`, its constructor with `@JsConstructor` (only one `@JsConstructor` is allowed to exist, more details can be found [in the javadoc](https://javadoc.io/doc/com.google.jsinterop/jsinterop-annotations/latest/index.html)), and all its public non-static fields with `@JsProperty`, so no need to add them explicitly.
1010

11+
Please see also `-generateJsInteropExports` compiler and development mode option.
12+
1113
Additionally, `@JsType` can be fine-tuned using the following properties:
1214

1315
* name: customizes the name of the type. The default is to keep the Java type name.

0 commit comments

Comments
 (0)