vaadin/vaadin-split-layout

Name: vaadin-split-layout

Owner: Vaadin

Description: The Web Component which allows you to partition a layout into resizeable areas. Part of the Vaadin components.

Created: 2016-08-09 14:52:27.0

Updated: 2018-05-23 12:29:39.0

Pushed: 2018-05-23 12:29:39.0

Homepage: https://vaadin.com/components

Size: 586

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

npm version Published on webcomponents.org Polymer 2 supported Build status Gitter

Published on Vaadin  Directory Stars on vaadin.com/directory

<vaadin-split-layout>

Live Demo ? | API documentation ?

<vaadin-split-layout> is a Polymer element implementing a split layout for two content elements with a draggable splitter between them, part of the Vaadin components.

din-split-layout>
aadin-split-layout orientation="vertical">
<div>First layout content</div>
<div>Second layout content</div>
vaadin-split-layout>
aadin-split-layout orientation="vertical">
<div>Third layout content</div>
<div>Fourth layout content</div>
vaadin-split-layout>
adin-split-layout>

Screenshot of vaadin-split-layout

Getting Started

Vaadin components use the Lumo theme by default.

The file structure for Vaadin components
Running demos and tests in browser
  1. Fork the vaadin-split-layout repository and clone it locally.

  2. Make sure you have npm installed.

  3. When in the vaadin-split-layout directory, run npm install and then polymer install --variants to install dependencies.

  4. Run polymer serve, after that you will be able to access:

  5. Polymer1-compatible version:

    • API documentation: http://127.0.0.1:8000/components/vaadin-split-layout/
    • Examples: http://127.0.0.1:8000/components/vaadin-split-layout/demo/
    • Tests: http://127.0.0.1:8000/components/vaadin-split-layout/test/
  6. Polymer2-compatible version:

    • API documentation: http://127.0.0.1:8001/components/vaadin-split-layout/
    • Examples: http://127.0.0.1:8001/components/vaadin-split-layout/demo/
    • Tests: http://127.0.0.1:8001/components/vaadin-split-layout/test/

Note that ports 8000 and 8001 could be different in your environment.

Running tests from the command line
  1. When in the vaadin-split-layout directory, run polymer test
Following the coding style

We are using ESLint for linting JavaScript code. You can check if your code is following our standards by running gulp lint, which will automatically lint all .js files as well as JavaScript snippets inside .html files.

Creating a pull request
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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.