{"id":19655929,"url":"https://github.com/vaadin-component-factory/explorer-tree-grid-flow","last_synced_at":"2026-06-09T13:31:32.049Z","repository":{"id":46795699,"uuid":"287037700","full_name":"vaadin-component-factory/explorer-tree-grid-flow","owner":"vaadin-component-factory","description":"Repository for Explorer Tree Grid Vaadin 14+ Add-on","archived":false,"fork":false,"pushed_at":"2023-04-20T07:26:08.000Z","size":170,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-27T02:18:27.737Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://incubator.app.fi/explorer-tree-grid-flow-demo/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vaadin-component-factory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-12T14:37:37.000Z","updated_at":"2023-10-26T05:10:16.000Z","dependencies_parsed_at":"2024-11-11T15:27:39.197Z","dependency_job_id":"6ec67ceb-15ba-4199-9933-dc966e8b7f5d","html_url":"https://github.com/vaadin-component-factory/explorer-tree-grid-flow","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/vaadin-component-factory/explorer-tree-grid-flow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaadin-component-factory%2Fexplorer-tree-grid-flow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaadin-component-factory%2Fexplorer-tree-grid-flow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaadin-component-factory%2Fexplorer-tree-grid-flow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaadin-component-factory%2Fexplorer-tree-grid-flow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vaadin-component-factory","download_url":"https://codeload.github.com/vaadin-component-factory/explorer-tree-grid-flow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaadin-component-factory%2Fexplorer-tree-grid-flow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34110011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T15:25:03.280Z","updated_at":"2026-06-09T13:31:32.030Z","avatar_url":"https://github.com/vaadin-component-factory.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \n\n## Development instructions\n\nStarting the demo server:\n\nGo to explorer-tree-grid-flow-demo and run:\n```\nmvn jetty:run\n```\n\nThis deploys demo at http://localhost:8080\n\n## How to use it\n\nJust replace the TreeGrid to ExplorerTreeGrid in your code.\n\nThe default API is the same. It also add a new method to display a text and an icon.\n\n## Examples\n\nJust replace the TreeGrid to ExplorerTreeGrid in your code\n\n### Default usage\n\n```\nprivate TreeGrid\u003cDepartment\u003e buildGrid() {\n    DepartmentData departmentData = new DepartmentData();\n    ExplorerTreeGrid\u003cDepartment\u003e grid = new ExplorerTreeGrid\u003c\u003e();\n    grid.setItems(departmentData.getRootDepartments(),\n            departmentData::getChildDepartments);\n    grid.addHierarchyColumn(Department::getName).setHeader(\"Department Name\");\n    grid.setSizeFull();\n    grid.expand(departmentData.getRootDepartments());\n    return grid;\n}\n```\n### Template Renderer and icon\n\n```\nExplorerTreeGrid\u003cDummyFile\u003e grid = new ExplorerTreeGrid\u003c\u003e();\ngrid.addHierarchyColumn(DummyFile::getFilename, DummyFile::getIcon).setHeader(\"File Name\");\nadd(grid);\n```\n### Component Renderer\n\n```\nExplorerTreeGrid\u003cDummyFile\u003e grid = new ExplorerTreeGrid\u003c\u003e();\ngrid.addComponentHierarchyColumn(value -\u003e {\n    Icon icon = VaadinIcon.FOLDER_OPEN_O.create();\n    icon.setColor(\"var(--lumo-contrast-50pct)\");\n    return new Span(icon, VaadinIcon.CLIPBOARD.create(), new Span(value.getFilename()));\n}).setHeader(\"Department Name\");\n```\n\n### Customize the Explorer Tree Grid\n\nBy default, there are few css variables that help you to change the style of the Explorer Tree Grid:\n\n| CSS Variable | Definition | Default value |\n|--------------|------------|---------------|\n| --explorer-tree-grid-toggle-level-offset   | Width of the spacer for each level    | 1.5rem |\n|  --explorer-tree-grid-expand-icon-width |   Size of the expand/collapse icon     |  0.8rem |\n|  --explorer-tree-grid-icon-type-width |   Size of the icon generated in the template renderer    | 1.1rem  |  \n|  --explorer-tree-grid-icon-type-margin |  Margins before and after the icon    | 0.1rem  |    \n|  --explorer-tree-grid-line-color |  Color of the connectors   |  var(--lumo-contrast-50pct) |    \n|  --explorer-tree-grid-icon-color |   Color of the expand/collapse icon and icon generated in the template renderer   |  var(--lumo-contrast-50pct) |    \n|  --explorer-tree-grid-icon-hover-color |   Color of the expand/collapse icon when hovered   | var(--lumo-contrast-80pct)  |    \n|  --explorer-tree-grid-border-style |   Style of the connectors   | dotted  |   \n|  --explorer-tree-grid-left-offset  |  Negative offset for the first column    | var(--lumo-space-s) | \n|  --explorer-tree-grid-default-margin |   Default margin for the grid cell   | var(--lumo-space-m)  | \n|  --explorer-tree-grid-icon-background  |   Background of the expand/collapse icon   | var(--lumo-base-color)  |  \n\n#### Default Theme\n\n![Default Theme](default_theme.png)\n\n#### Custom Theme\n```\n:host {\n    --explorer-tree-grid-toggle-level-offset: 2rem;\n    --explorer-tree-grid-icon-type-width: 1.5rem;\n    --explorer-tree-grid-expand-icon-width: 1.2rem;\n    --explorer-tree-grid-icon-type-margin: 0.1rem;\n    --explorer-tree-grid-line-color: var(--lumo-primary-color);\n    --explorer-tree-grid-icon-color: var(--lumo-primary-color-50pct);\n    --explorer-tree-grid-icon-hover-color: var(--lumo-primary-color);\n    --explorer-tree-grid-border-style: solid;\n}\n```\n\n![Custom Theme](custom_theme.png)\n\n\n## Notes\n\nThe add-on is working in Dark Mode and RTL. The theme is based on Lumo.\n\nIf you want to use Material Theme, then you will have to set the variables and also the expand/collapse icon.\n\n## Licence\n\nApache 2.0","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaadin-component-factory%2Fexplorer-tree-grid-flow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaadin-component-factory%2Fexplorer-tree-grid-flow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaadin-component-factory%2Fexplorer-tree-grid-flow/lists"}