Skip to content

[docs] Add recipe for showing a visibly disabled single item#22939

Open
michelengelen wants to merge 6 commits into
mui:masterfrom
michelengelen:recipe/treeview/18736
Open

[docs] Add recipe for showing a visibly disabled single item#22939
michelengelen wants to merge 6 commits into
mui:masterfrom
michelengelen:recipe/treeview/18736

Conversation

@michelengelen

Copy link
Copy Markdown
Member

Clarifies the distinction relevant to #18736: isItemSelectionDisabled hides the checkbox entirely, while isItemDisabled shows it in a disabled (grayed out) state for a specific item. Adds a demo and an info callout to the Selection docs, right after the existing isItemSelectionDisabled example.

Fixes #18736

Signed-off-by: michel <jsnerdic@gmail.com>
@michelengelen michelengelen self-assigned this Jun 25, 2026
@michelengelen michelengelen added docs Improvements or additions to the documentation. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. scope: tree view Changes related to the tree view. This includes TreeView, TreeItem. recipe labels Jun 25, 2026
@code-infra-dashboard

code-infra-dashboard Bot commented Jun 25, 2026

Copy link
Copy Markdown

Deploy preview

Bundle size

Bundle Parsed size Gzip size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) 0B(0.00%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-charts-premium 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)
@mui/x-license 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to the documentation. recipe scope: tree view Changes related to the tree view. This includes TreeView, TreeItem. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[tree view] Conditionally disable single tree view checkbox

1 participant