Skip to main content

.toastr

Noch keine Klassenbeschreibung für ToastrService (JSDoc fehlt).

Methoden​

.show(message?, title?, override?, type?)​

show toast

ParameterTypBeschreibung
messagestring
titlestring
overridePartial<IndividualConfig<ConfigPayload>>
typestring

Rückgabewert: ActiveToast<C> | null

.success(message?, title?, override?)​

show successful toast

ParameterTypBeschreibung
messagestring
titlestring
overridePartial<IndividualConfig<ConfigPayload>>

Rückgabewert: ActiveToast<unknown>

.error(message?, title?, override?)​

show error toast

ParameterTypBeschreibung
messagestring
titlestring
overridePartial<IndividualConfig<ConfigPayload>>

Rückgabewert: ActiveToast<unknown>

.info(message?, title?, override?)​

show info toast

ParameterTypBeschreibung
messagestring
titlestring
overridePartial<IndividualConfig<ConfigPayload>>

Rückgabewert: ActiveToast<unknown>

.warning(message?, title?, override?)​

show warning toast

ParameterTypBeschreibung
messagestring
titlestring
overridePartial<IndividualConfig<ConfigPayload>>

Rückgabewert: ActiveToast<unknown>

.clear(toastId?)​

Remove all or a single toast by id

ParameterTypBeschreibung
toastIdnumber

Rückgabewert: void

.remove(toastId)​

Remove and destroy a single toast by id

ParameterTypBeschreibung
toastIdnumber

Rückgabewert: boolean

.findDuplicate(title, message, resetOnDuplicate, countDuplicates)​

Determines if toast message is already shown

ParameterTypBeschreibung
titlestring
messagestring
resetOnDuplicateboolean
countDuplicatesboolean

Rückgabewert: ActiveToast<unknown>