mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
9942a3a4bb
Inverts the direction of the expand arrows in RTL for the tree examples and in the demo app. Fixes #10993.
26 lines
950 B
HTML
26 lines
950 B
HTML
<mat-tree [dataSource]="nestedDataSource" [treeControl]="nestedTreeControl" class="example-tree">
|
|
<mat-tree-node *matTreeNodeDef="let node" matTreeNodeToggle>
|
|
<li class="mat-tree-node">
|
|
<button mat-icon-button disabled></button>
|
|
{{node.filename}}: {{node.type}}
|
|
</li>
|
|
</mat-tree-node>
|
|
|
|
<mat-nested-tree-node *matTreeNodeDef="let node; when: hasNestedChild">
|
|
<li>
|
|
<div class="mat-tree-node">
|
|
<button mat-icon-button matTreeNodeToggle
|
|
[attr.aria-label]="'toggle ' + node.filename">
|
|
<mat-icon class="mat-icon-rtl-mirror">
|
|
{{nestedTreeControl.isExpanded(node) ? 'expand_more' : 'chevron_right'}}
|
|
</mat-icon>
|
|
</button>
|
|
{{node.filename}}
|
|
</div>
|
|
<ul [class.example-tree-invisible]="!nestedTreeControl.isExpanded(node)">
|
|
<ng-container matTreeNodeOutlet></ng-container>
|
|
</ul>
|
|
</li>
|
|
</mat-nested-tree-node>
|
|
</mat-tree>
|