@jakguru/vueprint / @jakguru/vueprint/services/ui / ToastService
Interface: ToastService
@jakguru/vueprint/services/ui.ToastService
Properties
version
• version: string
Defined in
Methods
argsToParams
▸ argsToParams(params
): SweetAlertOptions
Parameters
Name | Type |
---|---|
params | SweetAlertArrayOptions | readonly [SweetAlertOptions ] |
Returns
SweetAlertOptions
Defined in
bindClickHandler
▸ bindClickHandler(attribute?
): void
Parameters
Name | Type |
---|---|
attribute? | string |
Returns
void
Defined in
clickCancel
▸ clickCancel(): void
Returns
void
Defined in
clickConfirm
▸ clickConfirm(): void
Returns
void
Defined in
clickDeny
▸ clickDeny(): void
Returns
void
Defined in
close
▸ close(result?
): void
Parameters
Name | Type |
---|---|
result? | Partial <SweetAlertResult <any >> |
Returns
void
Defined in
disableButtons
▸ disableButtons(): void
Returns
void
Defined in
disableInput
▸ disableInput(): void
Returns
void
Defined in
enableButtons
▸ enableButtons(): void
Returns
void
Defined in
enableInput
▸ enableInput(): void
Returns
void
Defined in
fire
▸ fire<T
>(options
): Promise
<SweetAlertResult
<Awaited
<T
>>>
Type parameters
Name | Type |
---|---|
T | any |
Parameters
Name | Type |
---|---|
options | SweetAlertOptions |
Returns
Promise
<SweetAlertResult
<Awaited
<T
>>>
Defined in
▸ fire<T
>(title?
, html?
, icon?
): Promise
<SweetAlertResult
<Awaited
<T
>>>
Type parameters
Name | Type |
---|---|
T | any |
Parameters
Name | Type |
---|---|
title? | string |
html? | string |
icon? | SweetAlertIcon |
Returns
Promise
<SweetAlertResult
<Awaited
<T
>>>
Defined in
getActions
▸ getActions(): null
| HTMLElement
Returns
null
| HTMLElement
Defined in
getCancelButton
▸ getCancelButton(): null
| HTMLButtonElement
Returns
null
| HTMLButtonElement
Defined in
getCloseButton
▸ getCloseButton(): null
| HTMLButtonElement
Returns
null
| HTMLButtonElement
Defined in
getConfirmButton
▸ getConfirmButton(): null
| HTMLButtonElement
Returns
null
| HTMLButtonElement
Defined in
getContainer
▸ getContainer(): null
| HTMLElement
Returns
null
| HTMLElement
Defined in
getDenyButton
▸ getDenyButton(): null
| HTMLButtonElement
Returns
null
| HTMLButtonElement
Defined in
getFocusableElements
▸ getFocusableElements(): readonly HTMLElement
[]
Returns
readonly HTMLElement
[]
Defined in
getFooter
▸ getFooter(): null
| HTMLElement
Returns
null
| HTMLElement
Defined in
getHtmlContainer
▸ getHtmlContainer(): null
| HTMLElement
Returns
null
| HTMLElement
Defined in
getIcon
▸ getIcon(): null
| HTMLElement
Returns
null
| HTMLElement
Defined in
getIconContent
▸ getIconContent(): null
| HTMLElement
Returns
null
| HTMLElement
Defined in
getImage
▸ getImage(): null
| HTMLElement
Returns
null
| HTMLElement
Defined in
getInput
▸ getInput(): null
| HTMLInputElement
Returns
null
| HTMLInputElement
Defined in
getPopup
▸ getPopup(): null
| HTMLElement
Returns
null
| HTMLElement
Defined in
getProgressSteps
▸ getProgressSteps(): null
| HTMLElement
Returns
null
| HTMLElement
Defined in
getTimerLeft
▸ getTimerLeft(): undefined
| number
Returns
undefined
| number
Defined in
getTimerProgressBar
▸ getTimerProgressBar(): null
| HTMLElement
Returns
null
| HTMLElement
Defined in
getTitle
▸ getTitle(): null
| HTMLElement
Returns
null
| HTMLElement
Defined in
getValidationMessage
▸ getValidationMessage(): null
| HTMLElement
Returns
null
| HTMLElement
Defined in
hideLoading
▸ hideLoading(): void
Returns
void
Defined in
increaseTimer
▸ increaseTimer(ms
): undefined
| number
Parameters
Name | Type |
---|---|
ms | number |
Returns
undefined
| number
Defined in
isLoading
▸ isLoading(): boolean
Returns
boolean
Defined in
isTimerRunning
▸ isTimerRunning(): undefined
| boolean
Returns
undefined
| boolean
Defined in
isUpdatableParameter
▸ isUpdatableParameter(paramName
): paramName is SweetAlertUpdatableParameters
Parameters
Name | Type |
---|---|
paramName | string |
Returns
paramName is SweetAlertUpdatableParameters
Defined in
isValidParameter
▸ isValidParameter(paramName
): paramName is "background" | "footer" | "html" | "input" | "template" | "title" | "validationMessage" | "width" | "text" | "icon" | "allowEscapeKey" | "allowOutsideClick" | "buttonsStyling" | "cancelButtonAriaLabel" | "cancelButtonColor" | "cancelButtonText" | "closeButtonAriaLabel" | "closeButtonHtml" | "confirmButtonAriaLabel" | "confirmButtonColor" | "confirmButtonText" | "currentProgressStep" | "customClass" | "denyButtonAriaLabel" | "denyButtonColor" | "denyButtonText" | "didClose" | "didDestroy" | "hideClass" | "iconColor" | "imageAlt" | "imageHeight" | "imageUrl" | "imageWidth" | "preConfirm" | "preDeny" | "progressSteps" | "reverseButtons" | "showCancelButton" | "showCloseButton" | "showConfirmButton" | "showDenyButton" | "titleText" | "willClose" | "inputValidator" | "iconHtml" | "backdrop" | "toast" | "target" | "padding" | "color" | "position" | "grow" | "animation" | "showClass" | "timer" | "timerProgressBar" | "heightAuto" | "allowEnterKey" | "stopKeydownPropagation" | "keydownListenerCapture" | "focusConfirm" | "focusDeny" | "focusCancel" | "returnFocus" | "loaderHtml" | "showLoaderOnConfirm" | "showLoaderOnDeny" | "inputLabel" | "inputPlaceholder" | "inputValue" | "inputOptions" | "inputAutoFocus" | "inputAutoTrim" | "inputAttributes" | "returnInputValueOnDeny" | "progressStepsDistance" | "willOpen" | "didOpen" | "didRender" | "scrollbarPadding"
Parameters
Name | Type |
---|---|
paramName | string |
Returns
paramName is "background" | "footer" | "html" | "input" | "template" | "title" | "validationMessage" | "width" | "text" | "icon" | "allowEscapeKey" | "allowOutsideClick" | "buttonsStyling" | "cancelButtonAriaLabel" | "cancelButtonColor" | "cancelButtonText" | "closeButtonAriaLabel" | "closeButtonHtml" | "confirmButtonAriaLabel" | "confirmButtonColor" | "confirmButtonText" | "currentProgressStep" | "customClass" | "denyButtonAriaLabel" | "denyButtonColor" | "denyButtonText" | "didClose" | "didDestroy" | "hideClass" | "iconColor" | "imageAlt" | "imageHeight" | "imageUrl" | "imageWidth" | "preConfirm" | "preDeny" | "progressSteps" | "reverseButtons" | "showCancelButton" | "showCloseButton" | "showConfirmButton" | "showDenyButton" | "titleText" | "willClose" | "inputValidator" | "iconHtml" | "backdrop" | "toast" | "target" | "padding" | "color" | "position" | "grow" | "animation" | "showClass" | "timer" | "timerProgressBar" | "heightAuto" | "allowEnterKey" | "stopKeydownPropagation" | "keydownListenerCapture" | "focusConfirm" | "focusDeny" | "focusCancel" | "returnFocus" | "loaderHtml" | "showLoaderOnConfirm" | "showLoaderOnDeny" | "inputLabel" | "inputPlaceholder" | "inputValue" | "inputOptions" | "inputAutoFocus" | "inputAutoTrim" | "inputAttributes" | "returnInputValueOnDeny" | "progressStepsDistance" | "willOpen" | "didOpen" | "didRender" | "scrollbarPadding"
Defined in
isVisible
▸ isVisible(): boolean
Returns
boolean
Defined in
mixin
▸ mixin(options
): ToastService
Parameters
Name | Type |
---|---|
options | SweetAlertOptions |
Returns
Defined in
resetValidationMessage
▸ resetValidationMessage(): void
Returns
void
Defined in
resumeTimer
▸ resumeTimer(): undefined
| number
Returns
undefined
| number
Defined in
showLoading
▸ showLoading(buttonToReplace?
): void
Parameters
Name | Type |
---|---|
buttonToReplace? | null | HTMLButtonElement |
Returns
void
Defined in
showValidationMessage
▸ showValidationMessage(validationMessage
): void
Parameters
Name | Type |
---|---|
validationMessage | string |
Returns
void
Defined in
stopTimer
▸ stopTimer(): undefined
| number
Returns
undefined
| number
Defined in
toggleTimer
▸ toggleTimer(): undefined
| number
Returns
undefined
| number
Defined in
update
▸ update(options
): void
Parameters
Name | Type |
---|---|
options | Pick <SweetAlertOptions , SweetAlertUpdatableParameters > |
Returns
void