IAlertResult

The result of calling the useAlert hook. This gives you methods to invoke a alert or a confirm alert

Definition

interface IAlertResult {
    show: (content: string | IBaseAlertProps) => Promise<any>,
    confirm: (content: string | IConfirmAlertProps) => Promise<boolean>
    form: (content: IFormAlertProps) => Promise<any>
    info: (content: string | IBaseAlertProps) => Promise<any>
    success: (content: string | IBaseAlertProps) => Promise<any>
    warning: (content: string | IBaseAlertProps) => Promise<any>
    error: (content: string | IBaseAlertProps) => Promise<any>
}

Usage

import { IAlertResult } from 'uxp/components';

Last updated