Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Application
    • Application

Index

Constructors

constructor

  • new Application(rootUri: Cmd | null, els: object, config?: IDialogConfigOptions): Application
  • Parameters

    • rootUri: Cmd | null
    • els: object
      • body: JQuery
      • dialog: JQuery
      • mask: JQuery
      • viewComponent: JQuery
    • Optional config: IDialogConfigOptions

    Returns Application

Properties

Protected _dialogList

_dialogList: Dialog[]

Protected _eventToAction

_eventToAction: object | null

Protected _handlers

_handlers: object

该对象所有侦听函数的集合

Type declaration

  • [key: string]: Array<function>

Protected _heightDependOn

_heightDependOn: SizeDependOn | undefined

Protected _propState

_propState: object

Type declaration

  • [prop: string]: PropState

Protected _propValue

_propValue: object

Type declaration

  • [prop: string]: any

Protected _widthDependOn

_widthDependOn: SizeDependOn | undefined

body

body: IComponent

children

children: View[]

config

config: IDialogConfig

dialog

dialog: IComponent

history

history: History

initTime

initTime: number

initialization

initialization: Promise<this> | null

mask

mask: IComponent

parent

parent: Dialog | undefined

state

state: DialogState

vid

vid: string

viewComponent

viewComponent: JQuery

Methods

Protected _afterAppendChild

  • _afterAppendChild(member: View, options: any): void
  • Parameters

    • member: View
    • options: any

    Returns void

Protected _afterBlur

  • _afterBlur(): void
  • Returns void

Protected _afterClose

  • _afterClose(): void
  • Returns void

Protected _afterConfigChange

  • _afterConfigChange(oldConfig: IDialogConfig): void
  • Parameters

    • oldConfig: IDialogConfig

    Returns void

Protected _afterFocus

  • _afterFocus(): void
  • Returns void

Protected _afterInstallTo

  • _afterInstallTo(parent: View, options: any): void
  • Parameters

    • parent: View
    • options: any

    Returns void

Protected _afterRemoveChild

  • _afterRemoveChild(member: View, options: any): void
  • Parameters

    • member: View
    • options: any

    Returns void

Protected _afterUninstallTo

  • _afterUninstallTo(parent: View, options: any): void
  • Parameters

    • parent: View
    • options: any

    Returns void

Protected _allowAppendChild

  • _allowAppendChild(child: View, options: any): boolean
  • Parameters

    • child: View
    • options: any

    Returns boolean

Protected _allowBlur

  • _allowBlur(): boolean
  • Returns boolean

Protected _allowClose

  • _allowClose(): boolean
  • Returns boolean

Protected _allowFocus

  • _allowFocus(closeAction?: boolean): boolean
  • Parameters

    • Optional closeAction: boolean

    Returns boolean

Protected _allowInstallTo

  • _allowInstallTo(parent: View, options: any): boolean
  • Parameters

    • parent: View
    • options: any

    Returns boolean

Protected _allowRemoveChild

  • _allowRemoveChild(child: View, options: any): boolean
  • Parameters

    • child: View
    • options: any

    Returns boolean

Protected _allowUninstallTo

  • _allowUninstallTo(parent: View, options: any): boolean
  • Parameters

    • parent: View
    • options: any

    Returns boolean

Protected _appendViewComponent

  • _appendViewComponent(member: View, options: any): void
  • Parameters

    • member: View
    • options: any

    Returns void

Protected _beforeAppendChild

  • _beforeAppendChild(member: View, options: any): void
  • Parameters

    • member: View
    • options: any

    Returns void

Protected _beforeBlur

  • _beforeBlur(): void
  • Returns void

Protected _beforeClose

  • _beforeClose(): void
  • Returns void

Protected _beforeFocus

  • _beforeFocus(): void
  • Returns void

Protected _beforeInstallTo

  • _beforeInstallTo(parent: View, options: any): void
  • Parameters

    • parent: View
    • options: any

    Returns void

Protected _beforeRemoveChild

  • _beforeRemoveChild(member: View, options: any): void
  • Parameters

    • member: View
    • options: any

    Returns void

Protected _beforeUninstallTo

  • _beforeUninstallTo(parent: View, options: any): void
  • Parameters

    • parent: View
    • options: any

    Returns void

Protected _checkAppendChild

  • _checkAppendChild(member: View, options: any): boolean
  • Parameters

    • member: View
    • options: any

    Returns boolean

Protected _checkRemoveChild

  • _checkRemoveChild(member: View, options: any): boolean
  • Parameters

    • member: View
    • options: any

    Returns boolean

Protected _computeProp

  • _computeProp(prop: string): any
  • Parameters

    • prop: string

    Returns any

Protected _countIndex

  • _countIndex(): void
  • Returns void

Protected _getElements

  • _getElements(sub?: string): object
  • Parameters

    • Default value sub: string = ""

    Returns object

    • [x: string]: HTMLElement[]

Protected _init

  • _init(): Promise<this> | null
  • Returns Promise<this> | null

Protected _inited

  • _inited(): void
  • Returns void

Protected _onHistoryOverflow

  • _onHistoryOverflow(e: any): void
  • Parameters

    • e: any

    Returns void

Protected _removeViewComponent

  • _removeViewComponent(member: View, options: any): void
  • Parameters

    • member: View
    • options: any

    Returns void

Protected _setState

  • _setState(state: DialogState): void
  • Parameters

    • state: DialogState

    Returns void

Protected _setZIndex

  • _setZIndex(i: number): void
  • Parameters

    • i: number

    Returns void

Protected _triggerEvent

  • _triggerEvent(evtName: string, data: any, target: object): boolean
  • Parameters

    • evtName: string
    • data: any
    • target: object
      • hit: object
      • target: object
      • type: string

    Returns boolean

Protected _watchEvent

  • _watchEvent(jdom?: JQuery): void

addListener

  • addListener(ename: string, handler: function): this
  • 类似于Dom物件的addEventListener,添加ename事件的侦听函数

    Parameters

    • ename: string

      要侦听的事件名

    • handler: function

      事件回调函数

        • (e: PEvent): void
        • Parameters

          • e: PEvent

          Returns void

    Returns this

appendChild

  • appendChild(member: View, options?: any, checked?: boolean): boolean
  • Parameters

    • member: View
    • Optional options: any
    • Optional checked: boolean

    Returns boolean

close

  • close(): boolean
  • Returns boolean

destroy

  • destroy(): void
  • Returns void

dispatch

  • dispatch(evt: PEvent): this
  • 派发指定的事件

    Parameters

    • evt: PEvent

      要派发的事件

    Returns this

eachChildren

  • eachChildren(callback: function, andSelf?: boolean): void
  • Parameters

    • callback: function
        • (item: View): void
        • Parameters

          • item: View

          Returns void

    • Optional andSelf: boolean

    Returns void

eachDialogChildren

  • eachDialogChildren(callback: function, andSelf?: boolean): void
  • Parameters

    • callback: function
        • (item: Dialog): void
        • Parameters

          • item: Dialog

          Returns void

    • Optional andSelf: boolean

    Returns void

find

  • find(str: string): JQuery

focus

  • focus(checked?: boolean): boolean
  • Parameters

    • Optional checked: boolean

    Returns boolean

getDialog

  • getDialog(): Dialog
  • Returns Dialog

getFocusedChild

  • getFocusedChild(): Dialog
  • Returns Dialog

getProp

  • getProp(prop: string, ovalue?: boolean): any
  • Parameters

    • prop: string
    • Optional ovalue: boolean

    Returns any

getZIndex

  • getZIndex(): number
  • Returns number

invalidProp

  • invalidProp(prop: string): void
  • Parameters

    • prop: string

    Returns void

onWindowResize

  • onWindowResize(e: Event): void
  • Parameters

    • e: Event

    Returns void

removeChild

  • removeChild(member: View, options?: any, checked?: boolean): boolean
  • Parameters

    • member: View
    • Optional options: any
    • Optional checked: boolean

    Returns boolean

removeListener

  • removeListener(ename?: string, handler?: function): this
  • 类似于Dom物件的removeEventListener,移除该物件上侦听ename的指定handler

    Parameters

    • Optional ename: string

      要移除侦听的事件名,如果不传ename表示移除该物件上所有侦听函数

    • Optional handler: function

      要移除侦听的事件回调函数,如果不传handler表示移除该物件上ename的所有侦听函数

        • (e: PEvent): void
        • Parameters

          • e: PEvent

          Returns void

    Returns this

replaceChild

  • replaceChild(newChild: View, oChild?: View, options?: any, checked?: boolean): boolean
  • Parameters

    • newChild: View
    • Optional oChild: View
    • Optional options: any
    • Optional checked: boolean

    Returns boolean

setConfig

  • setConfig(config: IDialogConfigOptions): void
  • Parameters

    • config: IDialogConfigOptions

    Returns void

setParent

  • setParent(parent?: PDispatcher): this
  • parent属性为readonly的,要设置parent请使用此方法

    Parameters

    • Optional parent: PDispatcher

    Returns this

updateProp

  • updateProp(): void
  • Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc