Skip to main content

dialog

Index

Enumerations

readonlydateType

dateType:

Enum for date dialog

<div>DATE will open a dialog where you can select a special day</div> <div>TIME will open a dialog where you can only select a special time</div> <div>DATE_TIME will open a dialog where you can select a special time on a special day</div>

DATE

DATE: number

DATE_TIME

DATE_TIME: number

TIME

TIME: number

Variables

constbuttonText

buttonText: { CANCEL: string; NO: string; OK: string; YES: string } = ...

Type declaration

  • CANCEL: string
  • NO: string
  • OK: string
  • YES: string

constbuttonType

buttonType: { CANCEL: number; NEGATIVE: number; POSITIVE: number } = ...

Type declaration

  • CANCEL: number
  • NEGATIVE: number
  • POSITIVE: number

constfileType

fileType: { AUDIO: string; DOCUMENT: string[]; IMAGE: string; VIDEO: string } = ...

Type declaration

  • AUDIO: string
  • DOCUMENT: string[]
  • IMAGE: string
  • VIDEO: string

constinputType

inputType: { DEFAULT: number; INPUT: number; NUMBER: number; PASSWORD: number; TEXTAREA: number } = ...

Type declaration

  • DEFAULT: number
  • INPUT: number
  • NUMBER: number
  • PASSWORD: number
  • TEXTAREA: number

constselectType

selectType: { DEFAULT: number; ICON: number } = ...

Type declaration

  • DEFAULT: number
  • ICON: number

Functions

_chaynsCallResponder

  • _chaynsCallResponder(obj: any): void
  • Parameters

    • obj: any

    Returns void

addDialogDataListener

  • addDialogDataListener(callback: any, getApiEvents?: boolean): boolean
  • Parameters

    • callback: any
    • getApiEvents: boolean = false

    Returns boolean

advancedDate

  • advancedDate(config?: AdvancedDateConfig): Promise<unknown>
  • Parameters

    • config: AdvancedDateConfig = {}

    Returns Promise<unknown>

alert

  • alert(title?: string, message?: string): Promise<any> | unsupported
  • Parameters

    • title: string = ''
    • message: string = ''

    Returns Promise<any> | unsupported

close

  • close(): Promise<any>
  • Returns Promise<any>

confirm

  • confirm(title?: string, message?: string, config?: Confirm): Promise<any> | unsupported
  • Parameters

    • title: string = ''
    • message: string = ''
    • config: Confirm = {}

    Returns Promise<any> | unsupported

date

  • date(config?: DateConfig): Promise<any>
  • Parameters

    • config: DateConfig = {}

    Returns Promise<any>

dropUpAlert

  • dropUpAlert(dialog?: DropUpAlert): Promise<unknown>
  • Parameters

    • dialog: DropUpAlert = {}

    Returns Promise<unknown>

fileSelect

  • fileSelect(dialog?: FileSelectInput): Promise<unknown>
  • Parameters

    • dialog: FileSelectInput = {}

    Returns Promise<unknown>

iFrame

  • iFrame(dialog?: iFrameDialog): Promise<unknown>
  • Parameters

    • dialog: iFrameDialog = ...

    Returns Promise<unknown>

input

  • input(dialog?: InputDialog): Promise<unknown>
  • Parameters

    • dialog: InputDialog = {}

    Returns Promise<unknown>

mediaSelect

  • mediaSelect(dialog?: MediaSelectInput): Promise<unknown>
  • Parameters

    • dialog: MediaSelectInput = {}

    Returns Promise<unknown>

removeDialogDataListener

  • removeDialogDataListener(callback: any, getApiEvents?: boolean): boolean
  • Parameters

    • callback: any
    • getApiEvents: boolean = false

    Returns boolean

select

sendData

  • sendData(data: any, isApiEvent: any): Promise<any>
  • Parameters

    • data: any
    • isApiEvent: any

    Returns Promise<any>

signature

  • signature(dialog?: SignatureInput): Promise<unknown>
  • Parameters

    • optionaldialog: SignatureInput

    Returns Promise<unknown>

toast

  • toast(config?: {}): Promise<any>
  • Parameters

    • config: {} = {}

      Returns Promise<any>