Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
@if (!node.areChildrenLoading() && node.isExpandable()) {
<button
matIconButton
cdkTreeNodeToggle
cdkTreeNodeToggle tabindex="-1"
[attr.aria-label]="'Toggle ' + node.raw.name">
<mat-icon class="mat-icon-rtl-mirror">
{{tree.isExpanded(node) ? 'expand_more' : 'chevron_right'}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
{{node.name}}
</mat-tree-node>
<mat-tree-node *matTreeNodeDef="let node; when: hasChild" matTreeNodePadding matTreeNodeToggle
[cdkTreeNodeTypeaheadLabel]="node.name" (expandedChange)="onNodeExpanded(node, $event)">
[cdkTreeNodeTypeaheadLabel]="node.name" (expandedChange)="onNodeExpanded(node, $event)"
isExpandable>
<button matIconButton [attr.aria-label]="'Toggle ' + node.name" matTreeNodeToggle>
<mat-icon class="mat-icon-rtl-mirror">
{{tree.isExpanded(node) ? 'expand_more' : 'chevron_right'}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</mat-tree-node>
<!-- This is the tree node template for expandable nodes -->
<mat-tree-node *matTreeNodeDef="let node;when: hasChild" matTreeNodePadding matTreeNodeToggle
[cdkTreeNodeTypeaheadLabel]="node.name">
[cdkTreeNodeTypeaheadLabel]="node.name" isExpandable>
<button matIconButton matTreeNodeToggle
[attr.aria-label]="'Toggle ' + node.name">
<mat-icon class="mat-icon-rtl-mirror">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</mat-tree-node>
<!-- This is the tree node template for expandable nodes -->
<mat-tree-node *matTreeNodeDef="let node;when: hasChild" matTreeNodePadding matTreeNodeToggle
[cdkTreeNodeTypeaheadLabel]="node.name">
[cdkTreeNodeTypeaheadLabel]="node.name" isExpandable>
<button matIconButton matTreeNodeToggle
[attr.aria-label]="'Toggle ' + node.name">
<mat-icon class="mat-icon-rtl-mirror">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<!-- expandable node -->
<mat-tree-node *matTreeNodeDef="let node; when: hasChild" matTreeNodePadding matTreeNodeToggle
(expandedChange)="loadChildren(node)" [cdkTreeNodeTypeaheadLabel]="node.name">
(expandedChange)="loadChildren(node)" [cdkTreeNodeTypeaheadLabel]="node.name" isExpandable>
<button matIconButton [attr.aria-label]="'Toggle ' + node.name" matTreeNodeToggle>
<mat-icon class="mat-icon-rtl-mirror">
{{tree.isExpanded(node) ? 'expand_more' : 'chevron_right'}}
Expand All @@ -20,4 +20,4 @@
(click)="loadOnClick($event, node)" (keydown)="loadOnKeypress($event, node)">
Load more of {{node.parent}}...
</mat-tree-node>
</mat-tree>
</mat-tree>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<!-- This is the tree node template for expandable nodes -->
<mat-nested-tree-node
*matTreeNodeDef="let node; when: hasChild"
matTreeNodeToggle [cdkTreeNodeTypeaheadLabel]="node.name">
matTreeNodeToggle [cdkTreeNodeTypeaheadLabel]="node.name" isExpandable>
<div class="mat-tree-node">
<button matIconButton matTreeNodeToggle
[attr.aria-label]="'Toggle ' + node.name">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</mat-nested-tree-node>
<!-- This is the tree node template for expandable nodes -->
<mat-nested-tree-node *matTreeNodeDef="let node; when: hasChild" matTreeNodeToggle
[cdkTreeNodeTypeaheadLabel]="node.name">
[cdkTreeNodeTypeaheadLabel]="node.name" isExpandable>
<div class="mat-tree-node">
<button matIconButton matTreeNodeToggle [attr.aria-label]="'Toggle ' + node.name">
<mat-icon class="mat-icon-rtl-mirror">
Expand All @@ -22,4 +22,4 @@
<ng-container matTreeNodeOutlet></ng-container>
</div>
</mat-nested-tree-node>
</mat-tree>
</mat-tree>