-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Expand file tree
/
Copy pathcontent.interfaces.ts
More file actions
46 lines (34 loc) · 913 Bytes
/
content.interfaces.ts
File metadata and controls
46 lines (34 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import type { GestureDetail } from '../../interface';
import type { IonPadding } from '../../themes/themes.interfaces';
export interface IonContentRecipe {
background?: string;
color?: string;
font?: {
family?: string;
};
overflow?: string;
padding?: IonPadding;
transition?: {
cover?: {
background?: string;
opacity?: string;
};
shadow?: string;
};
}
export interface IonContentConfig {}
export interface ScrollBaseDetail {
isScrolling: boolean;
}
export interface ScrollDetail extends GestureDetail, ScrollBaseDetail {
scrollTop: number;
scrollLeft: number;
}
export type ScrollCallback = (detail?: ScrollDetail) => boolean | void;
export interface ScrollBaseCustomEvent extends CustomEvent {
detail: ScrollBaseDetail;
target: HTMLIonContentElement;
}
export interface ScrollCustomEvent extends ScrollBaseCustomEvent {
detail: ScrollDetail;
}