Interface BootboxStatic

Index

Methods

Methods

public addLocale(localeName: string, translations: BootboxLocale)

Parameters

public alert(message: string, callback: () => void)

Parameters

  • message: string
  • callback: () => void

public alert(message: string, customButtonText?: string, callback?: () => void)

Parameters

  • message: string
  • customButtonText?: string optional
  • callback?: () => void optional

public animate(shouldAnimate: boolean)

Parameters

  • shouldAnimate: boolean

public backdrop(backdropValue: string)

Parameters

  • backdropValue: string

public classes(customCssClasses: string)

Parameters

  • customCssClasses: string

public confirm(message: string, callback: (result: boolean) => void)

Parameters

  • message: string
  • callback: (result: boolean) => void

public confirm(message: string, cancelButtonText?: string, confirmButtonText?: string, callback?: (result: boolean) => void)

Parameters

  • message: string
  • cancelButtonText?: string optional
  • confirmButtonText?: string optional
  • callback?: (result: boolean) => void optional

public dialog(message: string, handlers: BootboxHandler[], options?: any)

Parameters

public dialog(message: string, handler: BootboxHandler)

Parameters

public dialog(message: string)

Parameters

  • message: string

public hideAll()

public prompt(message: string, callback: (result: string) => void, defaultValue?: string)

Parameters

  • message: string
  • callback: (result: string) => void
  • defaultValue?: string optional

public prompt(message: string, cancelButtonText?: string, confirmButtonText?: string, callback?: (result: string) => void, defaultValue?: string)

Parameters

  • message: string
  • cancelButtonText?: string optional
  • confirmButtonText?: string optional
  • callback?: (result: string) => void optional
  • defaultValue?: string optional

public setIcons(icons: BootboxIcons)

Parameters

public setLocale(localeName: string)

Parameters

  • localeName: string