SAP Spartacus B2B ListComponent响应回车事件的实现
生活随笔
收集整理的這篇文章主要介紹了
SAP Spartacus B2B ListComponent响应回车事件的实现
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
SAP Spartacus B2B的List頁(yè)面:
和回車(chē)鍵事件相關(guān)的實(shí)現(xiàn):
<cx-table*ngIf="data.values?.length > 0; else emptyList"[structure]="structure"[data]="data.values"[i18nRoot]="domainType"[currentItem]="{ property: key, value: currentKey$ | async }"(launch)="launchItem($event)"[cxFocus]="{ trap: 'both' }"></cx-table>調(diào)用棧:觀察lock-focus.directive.ts里的handleEnter函數(shù)是如何被Angular core調(diào)用的:
傳入focus directive的事件:KeyboardEvent
- code為Enter
- currentTarget: cx-table.vertical
- eventPhase: 3
- key: Enter
- keyCode: 13
類(lèi)型:keydown
更多Jerry的原創(chuàng)文章,盡在:“汪子熙”:
總結(jié)
以上是生活随笔為你收集整理的SAP Spartacus B2B ListComponent响应回车事件的实现的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: ps怎么做立体效果文字(ps中怎么做立体
- 下一篇: 雷科防务:公司安全存储产品已与龙芯、飞腾