使用角度6中的flex创建的表的上/下导航

时间:2019-01-16 12:10:55

标签: javascript angular flexbox

我已经按照如下方法使用flex创建了一个表。

<form #consolidatedForm="ngForm">
                            <div class="flex-row" *ngFor="let item of model.balance.Assets; 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)="syncCurrentAssets()" />
                                </div>
                                <div class="flex-cell border border-no-left calculated"> {{item.consolidatedStatement | wacNumber:true}} </div>
                            </div>
                        </form>

有没有办法在角度为6的flex行中的每个单元格之间导航?我只能找到不使用flex创建的表的解决方案。

0 个答案:

没有答案