UNPKG

@farris/ui-vue

Version:

Farris Vue, a Farris Design based Vue3 component library.

30 lines (29 loc) 1.22 kB
import { ExceptionInfo } from './message-box.props'; export interface MessageBoxOption { width?: number; type: string; title?: string; detail?: string; okButtonText?: string; cancelButtonText?: string; exceptionInfo?: ExceptionInfo; acceptCallback?: () => void; rejectCallback?: () => void; buttons?: Array<any>; enableNeverShowAgain?: boolean; onNeverShowAgain?: (e: any) => void; } export default class MessageBoxService { static app: any; static show(options: MessageBoxOption | string, messageText?: string, otherOpts?: any): any; static info(message: string, detail: string): void; static warning(message: string, detail: string): void; static success(message: string, detail: string): void; static error(message: string, detail: string, date?: string): any; static prompt(message: string, detail: string): void; static question(message: string, detail: string, acceptCallback: () => void, rejectCallback?: () => void, neverShowAgainOptions?: { enable: boolean; onNeverShowAgain?: (e: any) => void; }): void; static showHtmlMsg(type: string, title: string, message: string, callback?: () => void): void; }