【发布时间】:2019-01-21 08:34:05
【问题描述】:
<div class="flex-row" *ngFor="let item of model.balanceSheet.intermediateAssets; let i = index;">
<div class="flex-cell w-2 border border-no-bottom border-no-top border-no-left"> {{item.description | stringShorten:48}} </div>
<div class="flex-cell border border-no-left calculated" *ngFor="let value of item.wacValues"> {{value.value | wacNumber}} </div>
<div class="flex-cell border border-no-left" style="padding:1px 2px 1px 1px;">
<input type="number" [disabled]="syncing" style="border:none;" [(ngModel)]="item.eliminationAdjustment" [ngModelOptions]="{standalone: true}" name="eliminationadjustment + i" (change)="syncIntermediateAssets()" />
</div>
<div class="flex-cell border border-no-left calculated"> {{item.consolidatedStatement | wacNumber:true}} </div>
</div>
我试图在单击键盘上的向上向下箭头时在 angular6 中执行单元格导航。但问题是表格是使用 flex 类设计的,而不是使用 tr 和 td。是否可以使用执行单元格导航即使每列都没有要识别的 id,也可以使用 javascript?
【问题讨论】:
-
AngularJS 是这个问题的错误标签 - 它是 Angular 2+ 语法。
标签: javascript angular angular6