SAP Spartacus focus directive tabindex的默认值设置
SAP 设置 Spartacus 默认值 directive focus
2023-09-14 09:02:55 时间
base-focus的ngOnInit钩子里,会将requiredTabindex设置为-1:
这会触发set操作:
注释写得很清楚,对应button,和active links,即包含有效href属性的a标签,不需要显式设置tabindex,因此75行的if分支不会进入。
注意第93行的host属性检测:
下图这种a标签的design time设置,在运行时,routerLink会被Angular框架转换为ng-reflect-router-link, 而href属性的生成则是异步进行的:
更多Jerry的原创文章,尽在:“汪子熙”:
相关文章
- SAP UI5 按钮的类型和背景色设置例子
- 如何分辨 SAP Fiori Launchpad 里的真假 Fiori 应用
- 如何找到SAP Fiori 应用里cache-control header是从后台何处设置的
- 找出SAP OData service出错根源的小技巧
- SAP Gateway 后台模型的缓存设置
- SAP ABAP应用服务器返回给前端的304 not modified是怎么设置的
- 如何将SAP CRM产品主数据页面的assignment block设置成只读
- SAP Spartacus CORS 设置
- SAP Spartacus core里对应后台OAuth设置的硬编码位置
- SAP Spartacus ProductConnector和ProductService实现
- SAP Spartacus Travis CI设置
- 如何在 SAP 电商云里设置 Time Restrictions
- SQLITE_ERROR - table sap_capire_bookshop_books has no column named currency
- SAP Analytics Cloud exception aggregation type设置成LAST的效果
- SAP Analytics Cloud Smart Discovery不支持具有exception aggregation设置的模型
- SAP Analytics Cloud里Exception Aggregation Type的设置
- 如何在Java代码中使用SAP云平台CloudFoundry环境的环境变量
- SAP Fiori Elements 应用 manifest.json 文件里 resources.json 的含义
- 如何找到SAP Fiori 应用里cache-control header是从后台何处设置的
- 如何禁掉SAP Fiori上传文件的病毒扫描设置
- SAP UI5 DatePicker控件和语言设置相关的属性详解
- SAP 电商云 Spartacus UI 里如何捕捉语言设置的更改
- SAP Spartacus的User明细如何通过ngrx-store-devtools被解析出来