-
-
Notifications
You must be signed in to change notification settings - Fork 363
feat(Table): add EnableKeyboardNavigationCell parameter #6015
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 GuideThis pull request introduces a new EnableKeyboardNavigationCell parameter to the Table component, allowing developers to enable or disable keyboard navigation in Excel mode. The implementation updates the Table's Razor and JavaScript files to respect this parameter and adds a corresponding unit test. 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.
We encountered an error and are unable to review this PR. We have been notified and are working to fix it.
You can try again by commenting this pull request with @sourcery-ai review, or contact us for help.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6015 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 670 670
Lines 30651 30653 +2
Branches 4362 4362
=========================================
+ Hits 30651 30653 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Link issues
fixes #6014
Summary By Copilot
This pull request introduces a new feature to enable keyboard navigation in Excel mode for the
Tablecomponent in the BootstrapBlazor library. It includes updates to the component's Razor file, JavaScript file, and unit tests to support this functionality.Feature: Enable Keyboard Navigation in Excel Mode
Changes in Razor Component (
Table.razor.cs):EnableKeyboardNavigationCellwith a default value oftrueto control whether keyboard navigation is enabled in Excel mode.OnTableRenderAsyncmethod to pass theEnableKeyboardNavigationCellparameter to the table's configuration.Changes in JavaScript (
Table.razor.js):resetanddestroyTablefunctions to check theenableKeyboardNavigationCelloption before attaching or detaching keyboard event listeners, ensuring the behavior respects the new parameter. [1] [2]Unit Test Updates (
TableTest.cs):EnableKeyboardNavigationCellparameter can be set and functions correctly in Excel mode.These changes enhance the usability of the
Tablecomponent by allowing developers to enable or disable keyboard navigation in Excel mode as needed.Regression?
Risk
Verification
Packaging changes reviewed?
☑️ Self Check before Merge
Summary by Sourcery
Introduce a configurable parameter to enable or disable keyboard navigation in Excel mode for the Table component, updating component logic and tests accordingly.
New Features:
Enhancements:
Tests: