@vaadin/vaadin-app-layout

WebJar for @vaadin/vaadin-app-layout

License

License

Categories

Categories

Vaadin User Interface Web Frameworks Github Development Tools Version Controls
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

github-com-vaadin-vaadin-app-layout
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

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

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download github-com-vaadin-vaadin-app-layout

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

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.npm

Vaadin

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

Versions

Version
2.0.0