Skip to content

Vaadin Extension that provides GridPro functionalities to TreeGrid

License

Notifications You must be signed in to change notification settings

vaadin-component-factory/vcf-treegrid-pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TreeGrid Pro Addon for Vaadin Flow

This project is an addon that provides a TreeGrid version of Grid Pro

This component is part of Vaadin Component Factory

Running the component demo

Run from the command line:

  • mvn -pl vcf-treegrid-pro-demo -Pwar install jetty:run

Then navigate to http://localhost:8080/

Installing the component

Run from the command line:

  • mvn clean install -DskipTests

Profiles

Profile "directory"

This profile, when enabled, will create the zip file for uploading to Vaadin's directory

Profile "production"

This profile, when enabled, will execute a production build for the demo

Using the component in a Flow application

To use the component in an application using maven, add the following dependency to your pom.xml:

<dependency>
    <groupId>org.vaadin.addons.componentfactory</groupId>
    <artifactId>vcf-treegrid-pro</artifactId>
    <version>${component.version}</version>
</dependency>

Then use it as a regular tree grid, but you can also add edit columns in the following way:

TreeGridPro<Person> treeGridPro = new TreeGridPro<>();
treeGridPro.setItems(managers, this::getStaff);
treeGridPro.addHierarchyColumn(Person::getFirstName).setHeader("First name");
treeGridPro.addEditColumn(Person::getLastName).text(Person::setLastName).setHeader("Last name");
treeGridPro.addEditColumn(Person::getEmail).text(Person::setEmail).setHeader("Email");

Flow documentation

Documentation for flow can be found in Flow documentation.

License

Distributed under Vaadin Commercial License, see LICENSE.

TreeGrid Pro Component for Vaadin Flow is written by Vaadin Ltd.

Sponsored development

Major pieces of development of this add-on has been sponsored by multiple customers of Vaadin. Read more about Expert on Demand at: Support and Pricing.