Fix NotyOptions

This commit is contained in:
ruslanmogilevskiy 2014-10-13 18:45:43 +03:00
parent 8cf3af3240
commit e919dc6fd6

View File

@ -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);