-
-
Notifications
You must be signed in to change notification settings - Fork 363
feat(TreeView): add ShowToolbar parameter #5628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Reviewer's Guide by SourceryThis pull request introduces a new No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ArgoZhang - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding a sample demonstrating the
ShowToolbarCallbackfunctionality to showcase its dynamic behavior. - The new
TreeViewRowcomponent introduces a lot of new parameters; consider grouping related parameters together for better readability.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟡 Testing: 1 issue found
- 🟡 Complexity: 1 issue found
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5628 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 650 653 +3
Lines 29626 29344 -282
Branches 4166 4176 +10
==========================================
- Hits 29626 29344 -282 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Link issues
fixes #5627
Summary By Copilot
This pull request introduces several new features and improvements to the
TreeViewcomponent in theBootstrapBlazorproject. The changes include adding a toolbar to theTreeView, updating localization files, and refactoring the rendering logic for tree nodes.New Features:
TreeViewcomponent, which can be enabled by setting theShowToolbarparameter totrue. The toolbar functionality can be customized, and data updates can be handled using theOnUpdateCallbackAsynccallback method. (src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor[1] [2]src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor.cs[3] [4]Localization Updates:
en-US.json) and Chinese (zh-CN.json) localization files to include new entries for the toolbar feature in theTreeViewcomponent. (src/BootstrapBlazor.Server/Locales/en-US.json[1]src/BootstrapBlazor.Server/Locales/zh-CN.json[2]Code Refactoring:
RenderTreeRowmethod with theRenderRowmethod, which uses the newTreeViewRowcomponent. This change simplifies the code and improves readability. (src/BootstrapBlazor/Components/TreeView/TreeView.razor[1] [2]TreeViewcomponent's code-behind file, and updated the documentation comments to be more consistent and clear. (src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs[1] [2] [3] [4]Regression?
Risk
Verification
Packaging changes reviewed?
☑️ Self Check before Merge
Summary by Sourcery
Adds a toolbar to the TreeView component, allowing for customization and data updates via the OnUpdateCallbackAsync callback method.
New Features: