QNENet / vaadin-app-layout-flow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

App Layout Component for Vaadin Flow

Overview

Vaadin App Layout is a component providing a quick and easy way to get a common application layout structure done.

License & Author

Apache License 2.0

Installing

Add App Layout to your project:

<dependencies>
  <dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-app-layout-flow</artifactId>
    <version>1.0.3</version>
  </dependency>
</dependencies>

Basic Use

public class AppLayoutView extends AbstractAppRouterLayout {
    @Override
    protected void configure(AppLayout appLayout, AppLayoutMenu appLayoutMenu) {
        appLayout.setBranding(new Span("App Name").getElement());
        appLayoutMenu.addMenuItem(new AppLayoutMenuItem("About Company", "about"));
    }
}
/* Annotate AboutPage with @ParentLayout(AppLayoutView.class) */

About

License:Apache License 2.0


Languages

Language:Java 96.7%Language:HTML 2.2%Language:Shell 1.1%