ion-infinite-scroll-content
ion-infinite-scroll-content 组件是 ion-infinite-scroll 使用的默认子组件。它显示一个根据平台看起来最佳的无限滚动旋转器,并根据无限滚动的状态改变外观。可以通过设置 loadingSpinner 和 loadingText 属性来更改默认旋转器和添加文本。
有关更多信息以及用法,请参阅无限滚动文档。
属性
loadingSpinner
| 说明 | An animated SVG spinner that shows while loading. |
| 属性 | loading-spinner |
| 类型 | "bubbles" | "circles" | "circular" | "crescent" | "dots" | "lines" | "lines-sharp" | "lines-sharp-small" | "lines-small" | null | undefined |
| 默认值 | undefined |
loadingText
| 说明 | 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. |
| 属性 | loading-text |
| 类型 | IonicSafeString | string | undefined |
| 默认值 | undefined |