forked from triniwiz/nativescript-accordion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccordion.d.ts
82 lines (45 loc) · 2.06 KB
/
accordion.d.ts
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/**
* Contains the ListView class, which represents a standard list view widget.
*/
declare module "nativescript-accordion" {
import observable = require("data/observable");
import dependencyObservable = require("ui/core/dependency-observable");
import view = require("ui/core/view");
import color = require("color");
export module knownTemplates {
export var itemTemplate: string;
export var childTemplate: string;
}
export class ListView extends view.View {
public static itemLoadingEvent: string;
public static itemTapEvent: string;
public static loadMoreItemsEvent: string;
public static itemsProperty: dependencyObservable.Property;
public static itemTemplateProperty: dependencyObservable.Property;
public static childTemplateProperty: dependencyObservable.Property;
public static rowHeightProperty: dependencyObservable.Property;
android: any;
ios: any;
items: any;
itemTemplate: string | view.Template;
childTemplate: string | view.Template;
itemTemplates: string | Array<view.KeyedTemplate>;
childTemplates: string | Array<view.KeyedTemplate>;
itemTemplateSelector: string | ((item: any, index: number, items: any) => string);
childTemplateSelector: string | ((item: any, parent: number, index: number, items: any) => string);
separatorColor: color.Color;
rowHeight: number;
refresh();
scrollToIndex(index: number);
on(eventNames: string, callback: (data: observable.EventData) => void, thisArg?: any);
on(event: "itemLoading", callback: (args: ItemEventData) => void, thisArg?: any);
on(event: "itemTap", callback: (args: ItemEventData) => void, thisArg?: any);
on(event: "loadMoreItems", callback: (args: observable.EventData) => void, thisArg?: any);
}
export interface ItemEventData extends observable.EventData {
index: number;
view: view.View;
ios: any;
android: any;
}
}