mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Updated jquery.noty to current version
This commit is contained in:
committed by
GitHub
parent
2461ee114f
commit
4190c1de72
Vendored
+39
-30
@@ -11,51 +11,60 @@ interface NotyOptions {
|
||||
theme?: string;
|
||||
type?: string;
|
||||
/** Text to show. Can be html or string. */
|
||||
text?: string;
|
||||
text?: string;
|
||||
/** If you want to use queue feature set this true. */
|
||||
dismissQueue?: boolean;
|
||||
/** The note`s optional template like '<div class="noty_message"><span class="noty_text"></span><div class="noty_close"></div></div>' */
|
||||
template?: string;
|
||||
animation?: NotyAnimationOptions;
|
||||
/** Delay for closing event. Set false for sticky notifications */
|
||||
timeout?: any;
|
||||
/** Adds notification to the beginning of queue when set to true */
|
||||
force?: boolean;
|
||||
modal?: boolean;
|
||||
dismissQueue?: boolean;
|
||||
/** adds notification to the beginning of queue when set to true */
|
||||
force?: boolean;
|
||||
/** You can set max visible notification for dismissQueue true option */
|
||||
maxVisible?: number;
|
||||
/** To close all notifications before show */
|
||||
killer?: boolean;
|
||||
/** The note`s optional template like '<div class="noty_message"><span class="noty_text"></span><div class="noty_close"></div></div>' */
|
||||
template?: string;
|
||||
/** Delay for closing event. Set false for sticky notifications */
|
||||
timeout?: any;
|
||||
/** displays a progress bar */
|
||||
progressBar?: boolean;
|
||||
|
||||
animation?: NotyAnimationOptions;
|
||||
/** ['click', 'button', 'hover', 'backdrop'] // backdrop click will close all notifications */
|
||||
closeWith?: any[];
|
||||
|
||||
/** if true adds an overlay */
|
||||
modal?: boolean;
|
||||
/** if true closes all notifications and shows itself */
|
||||
killer?: boolean;
|
||||
|
||||
callback?: NotyCallbackOptions;
|
||||
/** An array of buttons or false to hide them */
|
||||
|
||||
/** an array of buttons, for creating confirmation dialogs. */
|
||||
buttons?: any;
|
||||
}
|
||||
|
||||
interface NotyAnimationOptions {
|
||||
open?: any;
|
||||
close?: any;
|
||||
easing?: string;
|
||||
speed?: number;
|
||||
open?: any;
|
||||
close?: any;
|
||||
easing?: string;
|
||||
speed?: number;
|
||||
}
|
||||
|
||||
interface NotyCallbackOptions {
|
||||
onShow?: Function;
|
||||
afterShow?: Function;
|
||||
onClose?: Function;
|
||||
afterClose?: Function;
|
||||
onShow?: Function;
|
||||
afterShow?: Function;
|
||||
onClose?: Function;
|
||||
afterClose?: Function;
|
||||
onCloseClick?: Function;
|
||||
}
|
||||
|
||||
interface NotyStatic {
|
||||
(notyOptions: NotyOptions);
|
||||
defaults: NotyOptions;
|
||||
(notyOptions: NotyOptions);
|
||||
defaults: NotyOptions;
|
||||
|
||||
get(id: any);
|
||||
close(id: any);
|
||||
clearQueue();
|
||||
closeAll();
|
||||
setText(id: any, text: string);
|
||||
setType(id: any, type: string);
|
||||
get(id: any);
|
||||
close(id: any);
|
||||
clearQueue();
|
||||
closeAll();
|
||||
setText(id: any, text: string);
|
||||
setType(id: any, type: string);
|
||||
}
|
||||
|
||||
interface Noty {
|
||||
@@ -72,7 +81,7 @@ interface Noty {
|
||||
}
|
||||
|
||||
interface JQueryStatic {
|
||||
noty: NotyStatic;
|
||||
noty: NotyStatic;
|
||||
}
|
||||
|
||||
interface JQuery {
|
||||
|
||||
Reference in New Issue
Block a user