Skip to content

Commit ed51719

Browse files
committed
Adding how to use
1 parent b41336d commit ed51719

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,30 @@ maven
1212
<artifactId>screenfullgwt</artifactId>
1313
<version>1.0</version>
1414
</dependency>
15+
16+
17+
How to use
18+
==========
19+
20+
21+
1) Inherit the module
22+
23+
<!-- fullscreen -->
24+
<inherits name="com.github.fworks.screenfullgwt.ScreenFullGWT" />
25+
26+
27+
2) Just call the static class methods
28+
29+
ScreenFull.toggleFullScreen();
30+
31+
Example (adding the toggle fullscreen on a button click handler:
32+
33+
getView().getFullscreen().addClickHandler(new ClickHandler() {
34+
@Override
35+
public void onClick(ClickEvent event) {
36+
ScreenFull.toggleFullScreen();
37+
}
38+
});
39+
40+
41+

0 commit comments

Comments
 (0)