【发布时间】:2018-08-08 07:46:55
【问题描述】:
我想在使用键盘箭头在项目之间导航时执行一些操作。
我应该实施任何事件吗? selectionChange 通过单击 ENTER 触发,但我想在通过箭头导航时激活该功能。
<mat-selection-list #list (selectionChange)="selectionChange($event, list.selectedOptions)">
<mat-list-option (mouseenter)="showEditIcon(true, i)" (mouseleave)="showEditIcon(false, i)"
*ngFor="let lotItem of lotList; let i = index;"
(click)="showLotDetails(lotItem, i)"
[value]='lotItem'>
【问题讨论】: