mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Fix NotyOptions
This commit is contained in:
parent
8cf3af3240
commit
e919dc6fd6
37
jquery.noty/jquery.noty.d.ts
vendored
37
jquery.noty/jquery.noty.d.ts
vendored
@ -7,19 +7,29 @@
|
||||
/// <reference path='../jquery/jquery.d.ts'/>
|
||||
|
||||
interface NotyOptions {
|
||||
layout?: string;
|
||||
theme?: string;
|
||||
type?: string;
|
||||
text?: string;
|
||||
dismissQueue?: boolean;
|
||||
template?: string;
|
||||
animation?: NotyAnimationOptions;
|
||||
timeout?: number;
|
||||
force?: boolean;
|
||||
modal?: boolean;
|
||||
closeWith?: any[];
|
||||
callback?: NotyCallbackOptions;
|
||||
buttons?: any;
|
||||
layout?: string;
|
||||
theme?: string;
|
||||
type?: string;
|
||||
/** Text to show. Can be html or 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;
|
||||
/** You can set max visible notification for dismissQueue true option */
|
||||
maxVisible?: number;
|
||||
/** To close all notifications before show */
|
||||
killer?: boolean;
|
||||
closeWith?: any[];
|
||||
callback?: NotyCallbackOptions;
|
||||
/** An array of buttons or false to hide them */
|
||||
buttons?: any;
|
||||
}
|
||||
|
||||
interface NotyAnimationOptions {
|
||||
@ -39,6 +49,7 @@ interface NotyCallbackOptions {
|
||||
interface NotyStatic {
|
||||
|
||||
(notyOptions: NotyOptions);
|
||||
defaults: NotyOptions;
|
||||
|
||||
get(id: any);
|
||||
close(id: any);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user