feat(refresher): adds refresher

This commit is contained in:
Manu Mtz.-Almeida
2018-01-13 12:36:03 +01:00
parent 512a08f396
commit 81ebc0e71b
10 changed files with 983 additions and 9 deletions

View File

@ -993,6 +993,7 @@ declare global {
onPress?: GestureCallback;
onStart?: GestureCallback;
onWillStart?: (_: GestureDetail) => Promise<void>;
passive?: boolean;
threshold?: number;
type?: string;
}
@ -2143,6 +2144,73 @@ declare global {
}
import {
RefresherContent as IonRefresherContent
} from './components/refresher-content/refresher-content';
declare global {
interface HTMLIonRefresherContentElement extends IonRefresherContent, HTMLElement {
}
var HTMLIonRefresherContentElement: {
prototype: HTMLIonRefresherContentElement;
new (): HTMLIonRefresherContentElement;
};
interface HTMLElementTagNameMap {
"ion-refresher-content": HTMLIonRefresherContentElement;
}
interface ElementTagNameMap {
"ion-refresher-content": HTMLIonRefresherContentElement;
}
namespace JSX {
interface IntrinsicElements {
"ion-refresher-content": JSXElements.IonRefresherContentAttributes;
}
}
namespace JSXElements {
export interface IonRefresherContentAttributes extends HTMLAttributes {
pullingIcon?: string;
pullingText?: string;
refreshingSpinner?: string;
refreshingText?: string;
}
}
}
import {
Refresher as IonRefresher
} from './components/refresher/refresher';
declare global {
interface HTMLIonRefresherElement extends IonRefresher, HTMLElement {
}
var HTMLIonRefresherElement: {
prototype: HTMLIonRefresherElement;
new (): HTMLIonRefresherElement;
};
interface HTMLElementTagNameMap {
"ion-refresher": HTMLIonRefresherElement;
}
interface ElementTagNameMap {
"ion-refresher": HTMLIonRefresherElement;
}
namespace JSX {
interface IntrinsicElements {
"ion-refresher": JSXElements.IonRefresherAttributes;
}
}
namespace JSXElements {
export interface IonRefresherAttributes extends HTMLAttributes {
closeDuration?: string;
enabled?: boolean;
pullDelta?: number;
pullMin?: number;
snapbackDuration?: string;
}
}
}
import {
ReorderGroup as IonReorderGroup
} from './components/reorder-group/reorder-group';