vaadin-app-layout

WebJar for vaadin-app-layout

License

License

Categories

Categories

Vaadin User Interface Web Frameworks
GroupId

GroupId

org.webjars.bowergithub.vaadin
ArtifactId

ArtifactId

vaadin-app-layout
Last Version

Last Version

2.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

vaadin-app-layout
WebJar for vaadin-app-layout
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/vaadin/vaadin-app-layout

Download vaadin-app-layout

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.vaadin/vaadin-app-layout/ -->
<dependency>
    <groupId>org.webjars.bowergithub.vaadin</groupId>
    <artifactId>vaadin-app-layout</artifactId>
    <version>2.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.vaadin/vaadin-app-layout/
implementation 'org.webjars.bowergithub.vaadin:vaadin-app-layout:2.2.0'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.vaadin/vaadin-app-layout/
implementation ("org.webjars.bowergithub.vaadin:vaadin-app-layout:2.2.0")
'org.webjars.bowergithub.vaadin:vaadin-app-layout:jar:2.2.0'
<dependency org="org.webjars.bowergithub.vaadin" name="vaadin-app-layout" rev="2.2.0">
  <artifact name="vaadin-app-layout" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.vaadin', module='vaadin-app-layout', version='2.2.0')
)
libraryDependencies += "org.webjars.bowergithub.vaadin" % "vaadin-app-layout" % "2.2.0"
[org.webjars.bowergithub.vaadin/vaadin-app-layout "2.2.0"]

Dependencies

compile (6)

Group / Artifact Type Version
org.webjars.bowergithub.vaadin : vaadin-button jar [2.4.0,3)
org.webjars.bowergithub.vaadin : vaadin-themable-mixin jar [1.6.1,2)
org.webjars.bowergithub.vaadin : vaadin-material-styles jar [1.3.2,2)
org.webjars.bowergithub.polymer : polymer jar [2.0.0,3)
org.webjars.bowergithub.vaadin : vaadin-lumo-styles jar [1.6.0,2)
org.webjars.bowergithub.vaadin : vaadin-element-mixin jar [2.4.1,3)

Project Modules

There are no modules declared in this project.

<vaadin-app-layout>

<vaadin-app-layout> is a Web Component providing a quick and easy way to get a common application layout structure done, part of the Vaadin components.

Live Demo | API documentation

npm version Published on webcomponents.org Build Status Gitter Published on Vaadin Directory Stars on vaadin.com/directory

⚠️ This is a pre-release version built with LitElement, part of the next generation of Vaadin web components.

Looking for Vaadin 14 compatible version? Please see the following branches:

<vaadin-app-layout>
  <vaadin-drawer-toggle slot="navbar touch-optimized"></vaadin-drawer-toggle>
  <h3 slot="navbar touch-optimized">Application Name</h3>
  <vaadin-tabs orientation="vertical" slot="drawer">
    <vaadin-tab>
      <a href="/profile">
        <iron-icon icon="lumo:user"></iron-icon>
        Profile
      </a>
    </vaadin-tab>
    <vaadin-tab>
      <a href="/contact">
        <iron-icon icon="lumo:phone"></iron-icon>
        Contact
      </a>
    </vaadin-tab>
  </vaadin-tabs>
  <div>Page content</div>
</vaadin-app-layout>

Screenshot of vaadin-app-layout

Screenshot of vaadin-app-layout on mobile

Installation

Install vaadin-app-layout:

npm i @vaadin/vaadin-app-layout --save

Once installed, import it in your application:

import '@vaadin/vaadin-app-layout/vaadin-app-layout.js';
import '@vaadin/vaadin-app-layout/vaadin-drawer-toggle.js';

Getting Started

Vaadin components use the Lumo theme by default.

To use the Material theme, import the correspondent file from the theme/material folder.

Entry points

  • The components with the Lumo theme:

    theme/lumo/vaadin-app-layout.js theme/lumo/vaadin-drawer-toggle.js

  • The components with the Material theme:

    theme/material/vaadin-app-layout.js theme/material/vaadin-drawer-toggle.js

  • Aliases for theme/lumo/vaadin-app-layout.js theme/lumo/vaadin-drawer-toggle.js

    vaadin-app-layout.js vaadin-drawer-toggle.js

Running demos and API docs in a browser

  1. Fork the vaadin-app-layout repository and clone it locally.

  2. Make sure you have npm installed.

  3. When in the vaadin-app-layout directory, run npm install to install dependencies.

  4. Run npm start, browser will automatically open the component API documentation.

Running tests from the command line

  • When in the vaadin-app-layout directory, run npm test

  • To debug tests in the browser, run npm run test:debug

Following the coding style

We are using ESLint for linting TypeScript code. You can check if your code is following our standards by running npm run lint, which will automatically lint all .ts files.

Big Thanks

Cross-browser Testing Platform and Open Source <3 Provided by Sauce Labs.

Contributing

To contribute to the component, please read the guideline first.

License

Apache License 2.0

Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.

org.webjars.bowergithub.vaadin

Vaadin

An open platform for building modern web apps for Java back ends

Versions

Version
2.2.0
2.2.0-beta1
2.2.0-alpha1
2.1.0
2.1.0-alpha1
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
2.0.0-beta1
2.0.0-alpha4
2.0.0-alpha3
2.0.0-alpha2
2.0.0-alpha1
1.0.2
1.0.1
1.0.0
1.0.0-beta1