跳到主要内容
版本:v8

无限滚动内容组件

ion-infinite-scroll-content 组件是 ion-infinite-scroll 默认使用的子组件。它会根据平台显示一个样式最佳的无限滚动加载指示器,并且外观会根据无限滚动状态的变化而改变。默认的加载指示器可以通过设置 loadingSpinnerloadingText 属性来更改,并可以添加文本。

关于更多信息和使用方法,请参阅 无限滚动文档

属性

loadingSpinner

DescriptionAn animated SVG spinner that shows while loading.
Attributeloading-spinner
Type"bubbles" | "circles" | "circular" | "crescent" | "dots" | "lines" | "lines-sharp" | "lines-sharp-small" | "lines-small" | null | undefined
Defaultundefined

loadingText

DescriptionOptional text to display while loading. loadingText can accept either plaintext or HTML as a string. To display characters normally reserved for HTML, they must be escaped. For example <Ionic> would become &lt;Ionic&gt;

For more information: Security Documentation

This property accepts custom HTML as a string. Content is parsed as plaintext by default. innerHTMLTemplatesEnabled must be set to true in the Ionic config before custom HTML can be used.
Attributeloading-text
TypeIonicSafeString | string | undefined
Defaultundefined

事件

No events available for this component.

方法

No public methods available for this component.

CSS Shadow Parts

No CSS shadow parts available for this component.

CSS 自定义属性

No CSS custom properties available for this component.

插槽

No slots available for this component.