Options
All
  • Public
  • Public/Protected
  • All
Menu

全局弹框相关操作

Hierarchy

  • Dialog

Index

Constructors

constructor

Methods

Static hideWait

  • hideWait(): void

Static showAlert

  • showAlert(title: string, message: string, callback?: any, modal?: boolean, animateDisable?: boolean): void
  • 弹出Alert对话框

    Parameters

    • title: string

      标题

    • message: string

      消息

    • Optional callback: any

      点击按钮的回调函数 Ext.MessageBox.fn ,点击按钮对应返回值 确定:ok

    • Optional modal: boolean

      是否有背景阴影层

    • Optional animateDisable: boolean

      禁用弹框动画

    Returns void

Static showCode

  • showCode(obj: any, value: string, linenumber?: boolean, lang?: string): void

Static showConfirm

  • showConfirm(title: string, message: string, callback: any, config?: any): void
  • 弹出确认对话框

    Parameters

    • title: string

      标题

    • message: string

      消息

    • callback: any

      回调函数 ,点击按钮对应返回值 确定:yes 取消:no

    • Optional config: any

      更多配置,例如配置按钮文字:{yes: "确定",no: "取消"}

    Returns void

Static showContent

  • showContent(obj: any, title: string, text: string, modal?: boolean): void
  • 显示纯文本内容

    Parameters

    • obj: any

      弹框动画对象

    • title: string

      标题

    • text: string

      内容

    • Optional modal: boolean

      模式窗口

    Returns void

Static showDeleteDataAlert

  • showDeleteDataAlert(title: string, message: string, confirmCallBack: any, confirmButtonText?: string): void
  • 弹出删除数据等无法撤销的操作确认框

    Parameters

    • title: string

      标题

    • message: string

      消息

    • confirmCallBack: any

      确认后回调

    • Optional confirmButtonText: string

      确认按钮的文字,默认:删除

    Returns void

Static showEditor

  • showEditor(obj: any, title: string, callBack: any, defaultValue?: string): void
  • 弹出大文本编辑框

    Parameters

    • obj: any

      弹框对象

    • title: string

      标题

    • callBack: any

      回调函数 callBack(Ext.getCmp(areaId).getValue());

    • Optional defaultValue: string

      默认值

    Returns void

Static showEditorHtml

  • showEditorHtml(obj: any, title: string, content: string): void
  • 显示编辑器生成的网页内容

    Parameters

    • obj: any

      弹框动画对象

    • title: string

      标题

    • content: string

      内容

    Returns void

Static showException

  • showException(e: any, from?: string): void
  • 弹出异常信息

    Parameters

    • e: any

      异常对象

    • Optional from: string

      来自功能

    Returns void

Static showFastColorPicker

  • showFastColorPicker(obj: any, defaultValue: string, onColorChange: any): any
  • 弹出颜色选择控件

    Parameters

    • obj: any

      需要弹出的目标控件

    • defaultValue: string

      默认颜色

    • onColorChange: any

      颜色变化的监听

    Returns any

    Ext.Promise

Static showFastDatePicker

  • showFastDatePicker(obj: any, defaultValue: string, dateFormat: string): any
  • 弹出日期时间选择控件

    Parameters

    • obj: any

      需要弹出的目标控件

    • defaultValue: string

      默认日期时间

    • dateFormat: string

      日期时间的格式

    Returns any

    Ext.Promise

Static showFormatJson

  • showFormatJson(obj: any, value: string): void
  • 格式化显示json字符串

    Parameters

    • obj: any
    • value: string

    Returns void

Static showHtml

  • showHtml(obj: any, title: string, content: string, modal?: boolean): any
  • 弹窗显示网页内容

    Parameters

    • obj: any

      弹框动画对象

    • title: string

      标题

    • content: string

      内容

    • Optional modal: boolean

      模式窗口

    Returns any

Static showImage

  • showImage(obj: any, url: string, callBack: any, modal?: boolean): void
  • 查看图片

    Parameters

    • obj: any

      弹框动画对象

    • url: string

      图片地址 String或JsonArray

    • callBack: any

      回调函数

    • Optional modal: boolean

      是否有背景阴影层

    Returns void

Static showJson

  • showJson(obj: any, title: string, value: string): void
  • 格式化显示json字符串

    Parameters

    • obj: any

      弹框对象

    • title: string

      标题

    • value: string

      弹框内容

    Returns void

Static showLink

  • showLink(obj: any, title: string, url: string, config: any, loadDoneCallBack?: any): void
  • 弹窗显示url网页内容

    Parameters

    • obj: any

      弹框动画对象

    • title: string

      标题

    • url: string

      网页地址

    • config: any

      扩展Ext.window.Window的配置 json对象

    • Optional loadDoneCallBack: any

      页面加载完成后的回调

    Returns void

Static showLottie

  • showLottie(obj: any, jsonPath: string): void
  • 查看lottie动效

    Parameters

    • obj: any

      弹框动画对象

    • jsonPath: string

      lottie的json文件路径

    Returns void

Static showMusic

  • showMusic(obj: any, musicUrl: string): void
  • 播放音乐

    Parameters

    • obj: any

      弹窗动画对象

    • musicUrl: string

      音乐路径

    Returns void

Static showPrompt

  • showPrompt(title: string, message: string, callback: any, multiline?: boolean, value?: string): void
  • 弹出确认对话框

    Parameters

    • title: string

      标题

    • message: string

      消息

    • callback: any

      回调函数 ,function(btn,val){} btn的值确定:ok 取消:no

    • Optional multiline: boolean

      是否多行输入

    • Optional value: string

      默认值

    Returns void

Static showSafeHtml

  • showSafeHtml(obj: any, title: string, content: string, modal?: boolean): any
  • 弹窗安全的显示网页内容

    Parameters

    • obj: any

      弹框动画对象

    • title: string

      标题

    • content: string

      内容

    • Optional modal: boolean

      模式窗口

    Returns any

Static showSql

  • showSql(obj: any, value: string): void
  • 格式化显示SQL语句内容

    Parameters

    • obj: any

      弹框动画对象

    • value: string

      sql代码内容

    Returns void

Static showText

  • showText(obj: any, icon: string, title: string, text: string, modal?: boolean): void
  • 显示纯文本内容

    Parameters

    • obj: any

      弹框动画对象

    • icon: string

      窗体图标

    • title: string

      标题

    • text: string

      内容

    • Optional modal: boolean

      模式窗口

    Returns void

Static showTip

  • showTip(title: string, message: string, callback: any): void
  • 显示弹框提醒,允许用户勾选下次不在弹出的功能

    Parameters

    • title: string
    • message: string
    • callback: any

      点击确定后的回调

    Returns void

Static showVideo

  • showVideo(obj: any, videoUrl: string): void

Static showWait

  • showWait(message: string): void
  • 显示等待窗口

    Parameters

    • message: string

      等待的消息

    Returns void

Static showWarning

  • showWarning(message: string, callback: any): void
  • 弹出系统警告窗体

    Parameters

    • message: string
    • callback: any

    Returns void

Static toast

  • toast(message: string): void
  • 显示自动消失的消息

    Parameters

    • message: string

      消息内容

    Returns void