Interface ToastrOptions

Index

Properties

Properties

optional public backgroundpositionClass?: string

Where toast should be displayed - background

optional public closeButton?: boolean

Should a close button be shown

optional public closeHtml?: string

Html for the close button

optional public containerId?: string

Id toast container will be given

optional public debug?: boolean

Should debug details be outputted to the console

optional public extendedTimeOut?: number

Time in milliseconds the toast should be displayed after mouse over

optional public hideDuration?: number

Time in milliseconds the toast should take to hide

optional public hideEasing?: string

Optionally override the animation easing to show or hide the toasts. Default is swing. swing and linear are built into jQuery.

optional public hideMethod?: string

Use the jQuery show/hide method of your choice. These default to fadeIn/fadeOut. The methods fadeIn/fadeOut, slideDown/slideUp, and show/hide are built into jQuery.

optional public iconClass?: string

Icon to use for toast

optional public iconClasses?: { error: string; info: string; success: string; warning: string; }

public iconClasses.error: string

Icon to use on error toasts

public iconClasses.info: string

Icon to use on info toasts

public iconClasses.success: string

Icon to use on success toasts

public iconClasses.warning: string

Icon to use on warning toasts

optional public messageClass?: string

CSS class the message element will be given

optional public newestOnTop?: boolean

Set newest toast to appear on top

optional public onHidden?: () => void

onHidden function callback

optional public onShown?: () => void

onShown function callback

optional public onclick?: () => void

Function to execute on toast click

optional public positionClass?: string

Where toast should be displayed

optional public showDuration?: number

Time in milliseconds the toast should take to show

optional public showEasing?: string

Optionally override the animation easing to show or hide the toasts. Default is swing. swing and linear are built into jQuery.

optional public showMethod?: string

Use the jQuery show/hide method of your choice. These default to fadeIn/fadeOut. The methods fadeIn/fadeOut, slideDown/slideUp, and show/hide are built into jQuery.

optional public tapToDismiss?: boolean

Should clicking on toast dismiss it?

optional public timeOut?: number

Time in milliseconds that the toast should be displayed

optional public titleClass?: string

CSS class the title element will be given

optional public toastClass?: string

CSS class the toast element will be given