How to make Button after click I want route to another class like RouterLink or another component for example click to Image and redirect to another class through RouterLink, but I dont want link as component? I cant find any solution still
I think the easier approach is to use Button and add click listener to the button and call navigate(“target”), i.e. something like
Button button = new Button(..);
button.addClickListener( e-> {
button.getUI().ifPresent(ui -> ui.navigate("target"));
});
thanks that it, no refresh page now, it should be good implement to next Vaadin release short version navigation for Button like in RouterLink