An open API service indexing awesome lists of open source software.

https://github.com/vaadin-component-factory/vcf-treegrid-pro

Vaadin Extension that provides GridPro functionalities to TreeGrid
https://github.com/vaadin-component-factory/vcf-treegrid-pro

addon gridpro treegrid vaadin

Last synced: 3 months ago
JSON representation

Vaadin Extension that provides GridPro functionalities to TreeGrid

Awesome Lists containing this project

README

        

# 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`:

```

org.vaadin.addons.componentfactory
vcf-treegrid-pro
${component.version}

```

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

```java
TreeGridPro 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](https://vaadin.com/docs/v24/flow/overview).

## License
Distributed under Vaadin Commercial License, see [LICENSE](https://github.com/vaadin-component-factory/vcf-treegrid-pro/blob/main/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](https://vaadin.com/support) and [Pricing](https://vaadin.com/pricing).