Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • View
    • View

Index

Constructors

constructor

  • new View(viewComponent: IViewComponent, parent?: View, vid?: string): View
  • Parameters

    • viewComponent: IViewComponent
    • Optional parent: View
    • Optional vid: string

    Returns View

Properties

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

children

children: View[]

config

config: any

initialization

initialization: Promise<this> | null

parent

parent: View | undefined

vid

vid: string

viewComponent

viewComponent: JQuery

Methods

Protected _afterAppendChild

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

    • member: View
    • options: any

    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 _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 _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 _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 _removeViewComponent

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

    • member: View
    • options: any

    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

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

find

  • find(str: string): JQuery

getDialog

  • getDialog(): Dialog
  • Returns Dialog

getProp

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

    • prop: string
    • Optional ovalue: boolean

    Returns any

invalidProp

  • invalidProp(prop: string): void
  • Parameters

    • prop: string

    Returns void

open

  • open(data: object | string, link: object): boolean
  • Parameters

    • data: object | string
    • link: object
      • hit: Element
      • target: Element
      • type: string

    Returns boolean

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

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