Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Popup

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected _config

_config: WidgetConfig<Widget> = null

Protected _eventBus

_eventBus: EventBus

Protected _initialConfig

_initialConfig: WidgetConfig<Widget> = null

Readonly id

id: string

widgetEl

widgetEl: JQuery<HTMLElement>

Static I18N

I18N: I18NResource | URLString = null

Methods

Protected _destroy

  • _destroy(): void

Protected _eachMode

  • _eachMode(type: "sizeMode" | "colorMode" | "faceMode", fn: (this: Widget, mode: string) => void, cfg?: WidgetConfig<Widget>): void
  • 按指定模式类型渲染

    Parameters

    • type: "sizeMode" | "colorMode" | "faceMode"

      模式类型

    • fn: (this: Widget, mode: string) => void

      渲染函数

        • (this: Widget, mode: string): void
        • Parameters

          Returns void

    • Optional cfg: WidgetConfig<Widget>

    Returns void

Protected _fire

  • _fire<E>(e: E, args?: Array<any>): void
  • Type parameters

    • E

    Parameters

    • e: E
    • Optional args: Array<any>

    Returns void

Protected _hasFaceMode

Protected _i18n

Protected _initDom

  • _initDom(): void

Protected _onAfterInit

  • _onAfterInit(): void

Protected _onAfterRender

  • _onAfterRender(): void

Protected _onBeforeInit

  • _onBeforeInit(): void
  • 在父类构造函数中的初始化之前,由子类重载实现

    Returns void

Protected _onBeforeRender

  • _onBeforeRender(): void

Protected _render

  • _render(): false

destroy

  • destroy(): void

disable

  • disable(): void
  • Returns void

enable

  • enable(): this
  • Returns this

hide

  • hide(): this

initialConfig

  • initialConfig<V>(key?: string): V
  • Type parameters

    • V

    Parameters

    • Optional key: string

    Returns V

isEnable

  • isEnable(): boolean
  • Returns boolean

isShown

  • isShown(): boolean

locale

  • locale(): string
  • locale(locale: string): this

name

  • name(): string

off

  • off(types?: string): this
  • Parameters

    • Optional types: string

    Returns this

on

  • on<H>(types: string, fn: H, once?: boolean): this
  • Type parameters

    • H

    Parameters

    • types: string
    • fn: H
    • Optional once: boolean

    Returns this

render

  • render<T>(): T

show

  • show(): this

toggle

  • toggle(): this
  • Toggles an element’s Popup. This is considered a “manual” triggering of the popover.

    Returns this