mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
add leanModal
This commit is contained in:
18
jquery.leanModal/jquery.leanModal-tests.ts
Executable file
18
jquery.leanModal/jquery.leanModal-tests.ts
Executable file
@@ -0,0 +1,18 @@
|
||||
/// <reference path="../jquery/jquery.d.ts" />
|
||||
/// <reference path="jquery.leanModal.d.ts" />
|
||||
|
||||
class LeanModalOptions implements JQueryLeanModalOption {
|
||||
top : number;
|
||||
overlay : number;
|
||||
closeButton: string;
|
||||
}
|
||||
|
||||
$.leanModal();
|
||||
|
||||
var leanModalOptions = new LeanModalOptions;
|
||||
|
||||
leanModalOptions.top = 200;
|
||||
leanModalOptions.overlay = 0.5;
|
||||
leanModalOptions.closeButton = ".close_button";
|
||||
|
||||
$.leanModal(leanModalOptions);
|
||||
24
jquery.leanModal/jquery.leanModal.d.ts
vendored
Executable file
24
jquery.leanModal/jquery.leanModal.d.ts
vendored
Executable file
@@ -0,0 +1,24 @@
|
||||
|
||||
|
||||
///<reference path="../jquery/jquery.d.ts" />
|
||||
|
||||
interface JQueryLeanModalOption {
|
||||
top : number;
|
||||
overlay : number;
|
||||
closeButton : String;
|
||||
}
|
||||
|
||||
interface JQueryLeanModalStatic {
|
||||
():any;
|
||||
(JQueryLeanModalOption):any;
|
||||
}
|
||||
|
||||
interface JQueryStatic {
|
||||
leanModal(): JQueryLeanModalStatic;
|
||||
leanModal(JQueryLeanModalOption): JQueryLeanModalStatic;
|
||||
}
|
||||
|
||||
interface JQuery {
|
||||
leanModal(): JQueryLeanModalStatic;
|
||||
leanModal(JQueryLeanModalOption): JQueryLeanModalStatic;
|
||||
}
|
||||
Reference in New Issue
Block a user