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
- Host: GitHub
- URL: https://github.com/vaadin-component-factory/vcf-treegrid-pro
- Owner: vaadin-component-factory
- License: other
- Created: 2024-08-05T17:08:27.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-12T12:59:10.000Z (9 months ago)
- Last Synced: 2025-01-10T00:36:25.392Z (4 months ago)
- Topics: addon, gridpro, treegrid, vaadin
- Language: Java
- Homepage:
- Size: 117 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).