mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 14:01:20 +08:00
chore(infinite-scroll): move infinite-scroll-content to separate directory
This commit is contained in:
2
packages/core/src/components.d.ts
vendored
2
packages/core/src/components.d.ts
vendored
@ -1053,7 +1053,7 @@ declare global {
|
||||
|
||||
import {
|
||||
InfiniteScrollContent as IonInfiniteScrollContent
|
||||
} from './components/infinite-scroll/infinite-scroll-content';
|
||||
} from './components/infinite-scroll-content/infinite-scroll-content';
|
||||
|
||||
declare global {
|
||||
interface HTMLIonInfiniteScrollContentElement extends IonInfiniteScrollContent, HTMLElement {
|
||||
|
@ -1,9 +1,7 @@
|
||||
import { Component, Prop } from '@stencil/core';
|
||||
import { Config } from '../../index';
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
|
||||
@Component({
|
||||
tag: 'ion-infinite-scroll-content'
|
||||
})
|
@ -0,0 +1,35 @@
|
||||
# ion-infinite-scroll-content
|
||||
|
||||
|
||||
|
||||
<!-- Auto Generated Below -->
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
#### loadingSpinner
|
||||
|
||||
string
|
||||
|
||||
|
||||
#### loadingText
|
||||
|
||||
string
|
||||
|
||||
|
||||
## Attributes
|
||||
|
||||
#### loadingSpinner
|
||||
|
||||
string
|
||||
|
||||
|
||||
#### loadingText
|
||||
|
||||
string
|
||||
|
||||
|
||||
|
||||
----------------------------------------------
|
||||
|
||||
*Built by [StencilJS](https://stenciljs.com/)*
|
@ -1,4 +1,4 @@
|
||||
# ion-infinite-scroll-content
|
||||
# ion-infinite-scroll
|
||||
|
||||
The Infinite Scroll allows you to perform an action when the user
|
||||
scrolls a specified distance from the bottom or top of the page.
|
||||
@ -49,6 +49,7 @@ export class NewsFeedPage {
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
## `waitFor` method of InfiniteScroll
|
||||
|
||||
In case if your async operation returns promise you can utilize
|
||||
@ -96,6 +97,7 @@ export class NewsFeedPage {
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
## Infinite Scroll Content
|
||||
|
||||
By default, Ionic uses the infinite scroll spinner that looks
|
||||
@ -133,28 +135,48 @@ You could replace our default content with custom SVG or CSS animations.
|
||||
|
||||
## Properties
|
||||
|
||||
#### loadingSpinner
|
||||
#### enabled
|
||||
|
||||
boolean
|
||||
|
||||
|
||||
#### position
|
||||
|
||||
string
|
||||
|
||||
|
||||
#### loadingText
|
||||
#### threshold
|
||||
|
||||
string
|
||||
|
||||
|
||||
## Attributes
|
||||
|
||||
#### loadingSpinner
|
||||
#### enabled
|
||||
|
||||
boolean
|
||||
|
||||
|
||||
#### position
|
||||
|
||||
string
|
||||
|
||||
|
||||
#### loadingText
|
||||
#### threshold
|
||||
|
||||
string
|
||||
|
||||
|
||||
## Events
|
||||
|
||||
#### ionInfinite
|
||||
|
||||
|
||||
## Methods
|
||||
|
||||
#### complete()
|
||||
|
||||
|
||||
|
||||
----------------------------------------------
|
||||
|
||||
|
2
packages/core/src/index.d.ts
vendored
2
packages/core/src/index.d.ts
vendored
@ -49,7 +49,7 @@ export {
|
||||
export { Grid } from './components/grid/grid';
|
||||
export { Header } from './components/header/header';
|
||||
export { InfiniteScroll } from './components/infinite-scroll/infinite-scroll';
|
||||
export { InfiniteScrollContent } from './components/infinite-scroll/infinite-scroll-content';
|
||||
export { InfiniteScrollContent } from './components/infinite-scroll-content/infinite-scroll-content';
|
||||
export { Input } from './components/input/input';
|
||||
export { Item } from './components/item/item';
|
||||
export { ItemDivider } from './components/item-divider/item-divider';
|
||||
|
Reference in New Issue
Block a user