Chrome开发者工具里展开Observable对象,从其operator能观察到施加在该Observable对象上的操作:

Map操作:(event) => this.getBreakpoint(event.target.innerWidth)

source.operator: DistinctUntilChangedOperator

这个this.breakpointService.breakpoint$的赋值位置:果然有map和distinctUntilChanged,通过pipe链接:

link:https://sap.github.io/spartacus-docs/above-the-fold/#page-fold-configuration

The page fold is configurable for each page template and breakpoint.

page fold针对每个page template和breakpoint进行配置。

The page fold configuration is only an indication to speed up the initial creation of page slots that are above the fold.

You designate the page fold by assigning a page slot to the pageFold parameter.

将pageSlot赋值给pageFold.

This page slot, and all previous, sibling page slots, are “above the fold”.

位于pageFold属性指定的slot以及其之前的兄弟page slot,称之为above the fold.

These page slots are prioritized ahead of page slots that are “below the fold”.

All page slots are eventually rendered if they happen to be above the fold.

The page fold indicates the last page slot that should be rendered above the fold.

Page fold代表应该以above the fold方式渲染的page slots中的最后一个。

If you need a configuration for specific breakpoints, you can configure the page fold for every breakpoint, as shown in the following example:

The page slots adjust their height automatically when components are loaded.

Page slot的高度是自适应的。

Given that content can be added at runtime, it is not possible to implement a (hard-coded) minimum height for page slots or components – it all depends on what the business will add at runtime.

不可能为page slot或者Component设置一个默认的最小高度。

To make it possible to defer the loading of below-the-fold content, Spartacus marks page slots that are below the page fold while page slots above the fold are being loaded. All page slots are marked with an is-pending class as long as all the inner components are not loaded.

当above the fold的page slot被加载时,below the fold中的slots被打上标记:如果其inner Components尚未被加载,则使用is-pending class来标注。

Additionally, the page fold slot has a page-fold class. With these two classes, Spartacus can apply various CSS rules to control deferred loading of below-the-fold content.

更多Jerry的原创文章,尽在:“汪子熙”:

SAP Spartacus pagefold学习笔记相关推荐

  1. SAP Spartacus directive学习笔记

    directive: 目的是给DOM元素添加自定义行为,可以和Component class一样,实现life cycle hooks: css selector: 在template中唯一标识一个D ...

  2. SAP SuccessFactors EC学习笔记(二)解码员工数据对象

    (首发于公众号JohnnyHCM) 作为一名年轻顾问,想赢得客户的信任并不是一件简单的事,尤其是我写的笔记还出现在百度搜索结果的第一个. 距离第一篇笔记,已经经历了SuccessFactors的7次大 ...

  3. SAP Analytics Cloud学习笔记(一):从CSV文件导入数据到Analytics Cloud里创建模型和Story

    从SAP官网下载一个供学习使用的csv文件: https://help.sap.com/http.svc/download?deliverable_id=20229442 拖拽到SAP Analyti ...

  4. SAP Fiori Elements 学习笔记 - 2021年4月19日

    SAP Fiori Elements List Report 里 Smart Table 模板的设计原理: sap.suite.ui.generic.template.fragments.TableC ...

  5. 一个初学者的SAP Cloud Platform学习笔记

    User p1942400002trial i042416trial Host hanatrial.ondemand.com 工作日志 2017-05-01 956我为什么没办法publish 到cl ...

  6. 一些SAP UI5的学习笔记

    写于2016-05-12. (1) 最重要的是学会:在console里看到一些log,如何找到具体是哪一行JS打印的这些log的方法.在jQuery.sap.log.info里设置断点肯定不行,因为会 ...

  7. SAP BW/4HANA学习笔记2

    2.Data Modeling BW/4HANA Data Modeling简介 Data Quality:数据质量问题: silos(桶仓):大量重复冗余的主数据,独立计算统计: 数据silos缺点 ...

  8. SAP Spartacus Page Layout学习笔记

    文档地址: https://sap.github.io/spartacus-docs/page-layout/#outlet-position Spartacus is based on a sing ...

  9. 《SAP高级应用开发》---Idoc学习笔记

    黄佳<SAP高级应用开发>,第四章Idoc技术学习笔记,记录如 一,Idoc:Intermediate document,系统间数据交换过程的媒介          A: 面向消息(mes ...

最新文章

  1. java 在线电影_java电影在线影评管理系统
  2. cgi备份还原和ghost有什么区别_手动GHOST还原重装系统详细教程
  3. 3.1_ 4连续分配管理方式
  4. Pytorch-张量的创建与使用方法
  5. MyEclipse移动开发教程:设置所需配置的iOS应用(四)
  6. 面试题7:用两个栈实现队列
  7. JAVA调用NuSoap服务
  8. 向量叉乘在永磁同步电机电磁转矩计算中的应用
  9. 【中级计量经济学】Lecture 9 面板数据模型
  10. Android文字转语音播报
  11. 双硬盘安装ubuntu
  12. clickhouse 新增列_# 记录一次clickhouse表新增字段遇到的问题
  13. 小马激活报错:已停止工作
  14. [希腊神话--英语]另类重看英语词汇---序言
  15. 【为人处事】:如何识人
  16. java基础/接口与继承1(0.96万字)
  17. 嵌入式硬件基础知识汇总<附带与硬件密切相关的软件介绍>
  18. 区块链未来三年将成为数字中国建设的重要支撑
  19. 苹果电脑自动键入密码_键入时控制上网本或笔记本电脑的触摸板
  20. shell获取当前目录和当前文件名和当前目录的路径

热门文章

  1. I.MX6 system.img unpack repack
  2. 【Android开发】用户界面设计-开发自定义的View
  3. ado.net 插入一条数据
  4. 移植基于linux-2.6.26.5内核s3c2410触摸屏驱动移植
  5. 机房系统(四)——【分页控件SSTab】
  6. zabbix监控远端主机
  7. Jetty:配置上下文
  8. 前端面试题整理【转】
  9. 软件需求说明书 概要设计说明书 项目开发计划 详细设计说明书 模版
  10. Codeforces Beta Round #19 D. Points