我在表格字段中使用Angula(4)+ Angular Material和Reactive Forms.我怎么能禁用它?我试过谷歌,但像残疾人="真"或类似的东西.你能告诉我正确的语法吗?这一定很容易.谢谢!
我的例子:
<mat-form-field class="xxx-form-full-with">
<textarea matInput placeholder="My description" formControlName="xxx"></textarea>
</mat-form-field>
Run Code Online (Sandbox Code Playgroud) 在一个旧项目中,我们使用了 ASP.NET 4.5,我想在其中使用框架 OpenIdDict。它是由 ASP.NET Core 1 和 2 制作的。我还能使用它吗?我需要注意什么?如果我不能使用它,你知道哪些替代方案?
OpenIdDict 链接:https : //github.com/openiddict/openiddict-core
我想在 Angular 应用程序中选择垫子表的一个项目(行)。因此我使用角度材质。我想我不知道添加(点击)事件的正确位置,还是我必须以其他方式执行此操作?感谢您的帮助!
<div class="table-container mat-elevation-z8">
<mat-table #table [dataSource]="dataSource" matSort>
<ng-container matColumnDef="item_id">
<mat-header-cell *matHeaderCellDef mat-sort-header> ID </mat-header-cell>
<mat-cell *matCellDef="let item"> {{item.id}} </mat-cell>
</ng-container>
<ng-container matColumnDef="item_name">
<mat-header-cell *matHeaderCellDef mat-sort-header> Name </mat-header-cell>
<mat-cell *matCellDef="let item" (click)="onSelect(item)"> {{item.name}} </mat-cell>
</ng-container>
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
</mat-table>
</div>
Run Code Online (Sandbox Code Playgroud)
该示例不起作用。