Repository navigation
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the update to visually disable selection checkboxes for ineligible employees.
No open issues 🎉
What changed in this PR
Updates the Tree Grid Conditional Selection demo to visually disable checkboxes for non-selectable rows, addressing #1323 while preserving the existing rule that only employees on PTO can be selected.
Changes:
- Adds a custom row-selector checkbox template reflecting selection state and employee eligibility.
- Styles the checkboxes and leaves pointer handling to the grid; corrects the comment describing the selection rule.
| File | Description |
|---|---|
| samples/grids/tree-grid/conditional-row-selectors/src/index.ts | Registers and renders custom checkboxes with the appropriate disabled state. |
| samples/grids/tree-grid/conditional-row-selectors/src/index.css | Adds checkbox padding and disables direct pointer interaction. |
Review effort: Balanced
mddragnev
requested changes
Nov 20, 2026
|
|
||
| igc-checkbox.row-selector { | ||
| padding: 2px; | ||
| pointer-events: none; |
Member
There was a problem hiding this comment.
This is changing the pointer of the enabled checkboxes as well. The disabled checkbox has it built-in.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1323