NavButtons

The NavButton opens a new page (as does the NavLink ) but with parameters sent to the backend with POST method.

NavButton navButton = new NavButton("Go to page with hidden parameters", "/page");
navButton.setParameter("secret", "XuSUNdk9F8IeGLNXq6bc");

Produces:

which does not work here because this documentation is a static page, where components instrumentation (Javascript code) is not enabled.

Style

You can customize both its layout and its text:

navButton.customStyle() [...]
navButton.customTextStyle() [...]