使用outlet在SAP Spartacus中添加自定義UI
- 2020 年 12 月 3 日
- AI
Just a simple piece of code to inject your custom UI element to SAP Spartacus via outlet:

其中header定義在storefront.component.html里:

最後的效果:默認情況下把標準的header區域替換了:

如果加上屬性值cxOutletPos=”after”, 則不覆蓋header,而是放到標準header的後面:

效果如下:
