DefinitelyTyped

Index

Variables

Variables

alertify: IAlertifyStatic

IAlertifyStatic: IAlertifyStatic

public labels: ILabels

The labels used for dialog buttons

public alert(message: string, fn?: Function, cssClass?: string): IAlertifyStatic

Create an alert dialog box

since

0.0.1

Parameters

  • message: string

    The message passed from the callee

  • fn?: Function optional

    Callback function

  • cssClass?: string optional

    Class(es) to append to dialog box

Returns

IAlertifyStatic

alertify (ie this)

public confirm(message: string, fn?: Function, cssClass?: string): IAlertifyStatic

Create a confirm dialog box

since

0.0.1

Parameters

  • message: string

    The message passed from the callee

  • fn?: Function optional

    Callback function

  • cssClass?: string optional

    Class(es) to append to dialog box

Returns

IAlertifyStatic

alertify (ie this)

public debug()

Attaches alertify.error to window.onerror method

since

0.3.8

public error(message: string): IAlertifyStatic

Shorthand for log messages

since

0.0.1

Parameters

  • message: string

    The message passed from the callee

Returns

IAlertifyStatic

alertify (ie this)

public extend(type: string): (message: string, wait?: number) => alertify.IAlertifyStatic

Extend the log method to create custom methods

since

0.0.1

Parameters

  • type: string

    Custom method name

Returns

(message: string, wait?: number) => alertify.IAlertifyStatic

function for logging

public init()

Initialize Alertify and create the 2 main elements. Initialization will happen automatically on the first use of alert, confirm, prompt or log.

since

0.0.1

public log(message: string, type?: string, wait?: number): IAlertifyStatic

Show a new log message box

since

0.0.1

Parameters

  • message: string

    The message passed from the callee

  • type?: string optional

    Optional type of log message

  • wait?: number optional

    Optional time (in ms) to wait before auto-hiding

Returns

IAlertifyStatic

alertify (ie this)

public prompt(message: string, fn?: Function, placeholder?: string, cssClass?: string): IAlertifyStatic

Create a prompt dialog box

since

0.0.1

Parameters

  • message: string

    The message passed from the callee

  • fn?: Function optional

    Callback function

  • placeholder?: string optional

    Default value for prompt input

  • cssClass?: string optional

    Class(es) to append to dialog

Returns

IAlertifyStatic

alertify (ie this)

public set(args: IProperties)

Used to set alertify properties

since

0.2.11

Parameters

public success(message: string): IAlertifyStatic

Shorthand for log messages

since

0.0.1

Parameters

  • message: string

    The message passed from the callee

Returns

IAlertifyStatic

alertify (ie this)

ILabels: ILabels

Labels for altertify.set function

optional public cancel?: string

optional public ok?: string

IProperties: IProperties

Properties for alertify.set function

optional public buttonFocus?: string

Default button for focus

optional public buttonReverse?: boolean

Should buttons be displayed in reverse order

optional public delay?: number

Default value for milliseconds display of log messages

optional public labels?: ILabels

Default values for display of labels