SAP Spartacus PagelayoutComponent里的section和slot
生活随笔
收集整理的這篇文章主要介紹了
SAP Spartacus PagelayoutComponent里的section和slot
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Page包含slots,slots包含Components.
Spartacus使用page template來組織slots和Components.
一個page template包含了一些可被全局使用的layout和Components,比如header和footer section.
在PagelayoutComponent里增添一些打印信息, 顯示layoutName$的值:
運行時的template列表:
header
LandingPage2Template
footer
這三個sections定義在layout-config.ts里:
sections里包含page slot:
以下圖header section里包含的slots為例:
header: {lg: {slots: ['PreHeader','SiteContext','SiteLinks','SiteLogo','SearchBox','SiteLogin','MiniCart','NavigationBar',],}
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
總結
以上是生活随笔為你收集整理的SAP Spartacus PagelayoutComponent里的section和slot的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: UNICODE编码 特殊符号
- 下一篇: 顺治通宝多少钱一枚,没有固定的价格