ion-infinite-scroll-content
ion-infinite-scroll-content 组件是 ion-infinite-scroll 默认使用的子组件。它会根据平台显示效果最佳的无限滚动加载指示器,并根据无限滚动状态改变外观。通过设置 loadingSpinner 和 loadingText 属性,可以更改默认的加载指示器并添加文本。
如需了解更多信息和使用方法,请参阅 无限滚动文档。
属性
loadingSpinner
| Description | An animated SVG spinner that shows while loading. |
| Attribute | loading-spinner |
| Type | "bubbles" | "circles" | "circular" | "crescent" | "dots" | "lines" | "lines-sharp" | "lines-sharp-small" | "lines-small" | null | undefined |
| Default | undefined |
loadingText
| Description | Optional 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 <Ionic>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. |
| Attribute | loading-text |
| Type | IonicSafeString | string | undefined |
| Default | undefined |
事件
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.