1

I'm building a menu bar in Vaadin 24 and got the following to work:

    MenuBar menuBar = new MenuBar();
    MenuItem monthlyTasksMenuItem = menuBar.addItem("Monthly Tasks", listener);
    SubMenu monthlyTasksSubMenu = monthlyTasksMenuItem.getSubMenu();
    RouterLink routerLink = new RouterLink( "Select Applicants for Invitations" , AboutView.class );
    monthlyTasksSubMenu.addItem( routerLink );

The problem is that the submenu item has the appearance of an anchor tag (i.e. has the underline when you hover over it). Is there something similar to a RouterLink that just reacts to a mouse click (without the underline)? Or, is that something I'd have to use CSS to change?

I'm looking for something that works just like routerLink, but without the underline:

    <??????> link = new <?????>( "Select Applicants for Invitations" , AboutView.class );
    monthlyTasksSubMenu.addItem( link );
Todd
  • 2,829
  • 5
  • 34
  • 56

0 Answers0