forked from schungx/Dojo-TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdijit.form.button.d.ts
170 lines (157 loc) · 8.43 KB
/
dijit.form.button.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
/************************************************************************/
/* Define button widget */
/************************************************************************/
/// <reference path="dijit.d.ts"/>
/// <reference path="dijit.form.d.ts"/>
declare module dijit
{
module form
{
interface _ButtonMixin extends Dijit._Mixin
{
//label: string;
//type: string;
get(name: "label"): string;
get(name: "type"): string;
get(name: string): any;
set(name: "label", value: string): void;
set(name: "type", value: string): void;
set(name: string, value: any, raiseChangeEvent?: boolean): void;
watch(prop: "label", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "type", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: string, callback: Dojo.WatchCallback<any>): Dojo.WatchHandle;
}
class Button extends _FormWidget implements _ButtonMixin
{
// dijit/form/_FormWidget
get(name: "baseClass"): string;
get(name: "class"): string;
get(name: "containerNode"): HTMLElement;
get(name: "dir"): string;
get(name: "domNode"): HTMLElement;
get(name: "focused"): boolean;
get(name: "id"): string;
get(name: "lang"): string;
get(name: "ownerDocument"): HTMLDocument;
get(name: "postMixInProperties"): string;
get(name: "srcNodeRef"): HTMLElement;
get(name: "style"): Dojo.StylesMap;
get(name: "title"): string;
get(name: "tooltip"): string;
get(name: "attachScope"): Object;
get(name: "searchContainerNode"): boolean;
get(name: "templatePath"): string;
get(name: "templateString"): string;
get(name: "active"): boolean;
get(name: "cssStateNodes"): { [attachPoint: string]: string; };
get(name: "hovering"): boolean;
get(name: "alt"): string;
get(name: "aria-label"): string;
get(name: "disabled"): boolean;
get(name: "intermediateChanges"): boolean;
get(name: "name"): string;
get(name: "scrollOnFocus"): boolean;
get(name: "tabIndex"): number;
get(name: "type"): string;
get(name: "value"): string;
set(name: "baseClass", value: string): void;
set(name: "class", value: string): void;
set(name: "containerNode", value: HTMLElement): void;
set(name: "dir", value: string): void;
set(name: "domNode", value: HTMLElement): void;
set(name: "focused", value: boolean): void;
set(name: "id", value: string): void;
set(name: "lang", value: string): void;
set(name: "ownerDocument", value: HTMLDocument): void;
set(name: "postMixInProperties", value: string): void;
set(name: "srcNodeRef", value: HTMLElement): void;
set(name: "style", value: Dojo.StylesMap): void;
set(name: "title", value: string): void;
set(name: "tooltip", value: string): void;
set(name: "attachScope", value: Object): void;
set(name: "searchContainerNode", value: boolean): void;
set(name: "templatePath", value: string): void;
set(name: "templateString", value: string): void;
set(name: "active", value: boolean): void;
set(name: "cssStateNodes", value: { [attachPoint: string]: string; }): void;
set(name: "hovering", value: boolean): void;
set(name: "alt", value: string): void;
set(name: "aria-label", value: string): void;
set(name: "disabled", value: boolean): void;
set(name: "intermediateChanges", value: boolean): void;
set(name: "name", value: string): void;
set(name: "scrollOnFocus", value: string): boolean;
set(name: "tabIndex", value: number): void;
set(name: "type", value: string): void;
set(name: "value", value: string): void;
watch(prop: "baseClass", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "class", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "containerNode", callback: Dojo.WatchCallback<HTMLElement>): Dojo.WatchHandle;
watch(prop: "dir", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "domNode", callback: Dojo.WatchCallback<HTMLElement>): Dojo.WatchHandle;
watch(prop: "focused", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "id", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "lang", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "ownerDocument", callback: Dojo.WatchCallback<HTMLDocument>): Dojo.WatchHandle;
watch(prop: "postMixInProperties", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "srcNodeRef", callback: Dojo.WatchCallback<HTMLElement>): Dojo.WatchHandle;
watch(prop: "style", callback: Dojo.WatchCallback<Dojo.StylesMap>): Dojo.WatchHandle;
watch(prop: "title", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "tooltip", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "attachScope", callback: Dojo.WatchCallback<Object>): Dojo.WatchHandle;
watch(prop: "searchContainerNode", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "templatePath", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "templateString", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "active", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "cssStateNodes", callback: Dojo.WatchCallback<{ [attachPoint: string]: string; }>): Dojo.WatchHandle;
watch(prop: "hovering", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "alt", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "aria-label", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "disabled", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "intermediateChanges", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "name", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "scrollOnFocus", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "tabIndex", callback: Dojo.WatchCallback<number>): Dojo.WatchHandle;
watch(prop: "type", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "value", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
// dijit/form/_ButtonMixin
get(name: "label"): string;
set(name: "label", value: string): void;
watch(prop: "label", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
// get/set/watch master signatures
get(name: string): any;
set(name: string, value: any, raiseChangeEvent?: boolean): void;
set(values: Dojo.PropertiesMap): void;
watch(prop: string, callback: Dojo.WatchCallback<any>): Dojo.WatchHandle;
// Events
on(type: "Blur", listener: Dojo.Action): Dojo.RemovableHandle;
on(type: "Change", listener: (newValue: any) => void ): Dojo.RemovableHandle;
on(type: "Click", listener: Dojo.EventListener<MouseEvent> ): Dojo.RemovableHandle;
on(type: "Close", listener: Dojo.Action): Dojo.RemovableHandle;
on(type: "DblClick", listener: Dojo.EventListener<MouseEvent> ): Dojo.RemovableHandle;
on(type: "Focus", listener: Dojo.Action): Dojo.RemovableHandle;
on(type: "Hide", listener: Dojo.Action): Dojo.RemovableHandle;
on(type: "Input", listener: (ev: KeyboardEvent) => boolean): Dojo.RemovableHandle;
on(type: "KeyDown", listener: Dojo.EventListener<KeyboardEvent> ): Dojo.RemovableHandle;
on(type: "KeyPress", listener: Dojo.EventListener<KeyboardEvent> ): Dojo.RemovableHandle;
on(type: "KeyUp", listener: Dojo.EventListener<KeyboardEvent> ): Dojo.RemovableHandle;
on(type: "MouseDown", listener: Dojo.EventListener<MouseEvent> ): Dojo.RemovableHandle;
on(type: "MouseEnter", listener: Dojo.EventListener<MouseEvent> ): Dojo.RemovableHandle;
on(type: "MouseLeave", listener: Dojo.EventListener<MouseEvent> ): Dojo.RemovableHandle;
on(type: "MouseMove", listener: Dojo.EventListener<MouseEvent> ): Dojo.RemovableHandle;
on(type: "MouseOut", listener: Dojo.EventListener<MouseEvent> ): Dojo.RemovableHandle;
on(type: "MouseOver", listener: Dojo.EventListener<MouseEvent> ): Dojo.RemovableHandle;
on(type: "MouseUp", listener: Dojo.EventListener<MouseEvent> ): Dojo.RemovableHandle;
on(type: "Show", listener: Dojo.Action): Dojo.RemovableHandle;
on(type: string, listener: Dojo.Action): Dojo.RemovableHandle;
on(type: string, listener: (ev: KeyboardEvent) => boolean): Dojo.RemovableHandle;
on(type: Dojo.ExtensionEvent, func: Dojo.Action): Dojo.RemovableHandle;
}
}
}
// Module definitions
declare module "dijit/form/Button"
{
var Button: typeof dijit.form.Button;
export = Button;
}