feat(TreeData): add maxVisibleDepth option + runtime API#2591
feat(TreeData): add maxVisibleDepth option + runtime API#2591ghiscoding wants to merge 2 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2591 +/- ##
=======================================
Coverage 100.0% 100.0%
=======================================
Files 197 197
Lines 25355 25372 +17
Branches 8961 8967 +6
=======================================
+ Hits 25355 25372 +17
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
angular-slickgrid
aurelia-slickgrid
slickgrid-react
slickgrid-vue
@slickgrid-universal/angular-row-detail-plugin
@slickgrid-universal/aurelia-row-detail-plugin
@slickgrid-universal/react-row-detail-plugin
@slickgrid-universal/vue-row-detail-plugin
@slickgrid-universal/binding
@slickgrid-universal/common
@slickgrid-universal/composite-editor-component
@slickgrid-universal/custom-footer-component
@slickgrid-universal/custom-tooltip-plugin
@slickgrid-universal/empty-warning-component
@slickgrid-universal/event-pub-sub
@slickgrid-universal/excel-export
@slickgrid-universal/graphql
@slickgrid-universal/odata
@slickgrid-universal/pagination-component
@slickgrid-universal/pdf-export
@slickgrid-universal/row-detail-view-plugin
@slickgrid-universal/rxjs-observable
@slickgrid-universal/sql
@slickgrid-universal/text-export
@slickgrid-universal/utils
@slickgrid-universal/vanilla-bundle
@slickgrid-universal/vanilla-force-bundle
commit: |
|
@zewa666 this should address your feature request from issue #2373 at first it only added the tree data options and modified the Filter Service, but then it required more work for the end user to change it afterward. So I added 2 functions to set/clear the max depth via the Tree Data Service, which makes it much easier for the end user to change it at anytime. Let me know if that covers it all, a big part of it was done by copilot it's always a bit longer to review a PR now that we have all frameworks in here haha 😅 but it's good to have the same code change spread across all framework demos.... anyway if you could just review the 2 Services changes, that'd be great, thanks ...oh I forgot to test the export, which is a manual process, but I expect it to work since it's WYSIWYG but will check tomorrow nonetheless EDIT tested the export and it works as intended which isn't surprising since it's WYSIWYG |
closes #2373
vibe coded with copilot using GPT-5 mini
Adds a new
treeDataOptions.maxVisibleDepthsetting to limit how deep tree nodes are shown (nodes deeper than the value are hidden, not removed). Adds runtime API methodssetMaxVisibleDepth(n)andclearMaxVisibleDepth()so apps can update or clear the limit at runtime. Updates demos and docs across frameworks and adds simple Set/Clear controls to the Example05/Example27 demos.