forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
knockout.activity.d.ts
48 lines (38 loc) · 1.21 KB
/
knockout.activity.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
// Type definitions for KoLite 1.1
// Project: https://github.com/CodeSeven/kolite
// Definitions by: Boris Yankov <https://github.com/borisyankov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts" />
/// <reference path="../knockout/knockout.d.ts" />
// Activity /////////////////////////////////////////////
interface KoLiteActivityOptions {
color?: any;
segments?: number;
space?: number;
length?: number;
width?: number;
speed?: number;
align?: string;
valign?: string;
padding?: number;
}
interface KoLiteActivity {
(options: KoLiteActivityOptions): JQuery;
defaults: KoLiteActivityOptions;
getOpacity(options: { steps?: number; segments?: number; opacity?: number; }, i: number): number;
}
interface KoLiteActivityDefaultOptions {
activityClass?: string,
container?: string,
inactiveClass?: string
}
interface KoLiteActivityBindingHandler extends KnockoutBindingHandler {
defaultOptions: KoLiteActivityDefaultOptions
}
interface KnockoutBindingHandlers {
activity: KoLiteActivityBindingHandler;
}
interface JQuery {
activity: KoLiteActivity;
activityEx(isLoading: boolean): JQuery;
}