Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

vaadin/vaadin-accordion-flow

Repository files navigation

Accordion for Vaadin Flow

Accordion for Vaadin Flow is a UI component add-on for Vaadin which provides an accordion component.

⚠️ This repository is deprecated

License & Author

Apache License 2.0

Vaadin Accordion is written by Vaadin Ltd.

Installing

Add Accordion to your project

<dependencies>
  <dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-accordion-flow</artifactId>
    <version>${vaadin.accordion.version}</version>
  </dependency>
</dependencies>

Basic use

Accordion accordion = new Accordion();
accordion.add("Red", redContent);
accordion.add("Orange", orangeContent);
accordion.add("Yellow", yellowContent);

accordion.addOpenedChangedListener(event ->
        Notification.show(event.getOpenedPanel().get().getSummaryText() + " opened"));

Setting up for development

Clone the project in GitHub (or fork it if you plan on contributing)

git clone git@github.com:vaadin/vaadin-accordion-flow.git

To build and install the project into the local repository run

mvn install -DskipITs

in the root directory. -DskipITs will skip the integration tests, which require a TestBench license. If you want to run all tests as part of the build, run

mvn install

To compile and run demos locally execute

mvn compile
mvn -pl vaadin-accordion-flow-demo -Pwar jetty:run