我想改变边框颜色和宽度的垫-扩展面板,有一个特定的类别。
html
<div>
<mat-accordion>
<mat-expansion-panel *ngFor="let item of itemList; let i=index"
[hideToggle]="true"
[class.selected]="item.selected">
<mat-expansion-panel-
我正在尝试使用angular对齐下面展开/折叠问题栏中的文本。下面的代码是HTML/ Angular代码片段之一。有相当多这样的代码块构成了下面的图片 <mat-expansion-panel hideToggle>
<mat-expansion-panel-header>
<mat-panel-title>
User Data Management
</mat-panel-title>
<mat-panel-description>
What is an agent?
</mat-p
见。
角材料允许,
<mat-expansion-panel>
<mat-expansion-panel-header>
This is the expansion title
</mat-expansion-panel-header>
<ng-template matExpansionPanelContent>
Some deferred content
</ng-template>
</mat-expansion-panel>
当在隐藏组件(例如,关闭的 )中呈现时,呈现错误():
我正在使用mat-form-field和mat-icon,我希望当我在mat-form-field(mat-Input field)内单击或聚焦时,mat-icon颜色应该改变,而焦点输出mat-icon保持原来的颜色。(Stackblitz)see in this example & make changes inside
下面是加价
<mat-card class="example-card" *ngFor="let filteredScreen of
filteredScreens" let i = index >
<mat-card-header>
<div mat-card-avatar class="example-header-image" >
<img mat-card-image class="list-img"