Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Sider

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected _config

_config: WidgetConfig<Widget> = null

Protected _eventBus

_eventBus: EventBus

Protected _initialConfig

_initialConfig: WidgetConfig<Widget> = null

Protected _mainEl

_mainEl: JQuery<HTMLElement>

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
  • 在父类构造函数中的初始化之后,由子类重载实现

    Returns void

Protected _onAfterRender

  • _onAfterRender(): void

Protected _onBeforeInit

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

    Returns void

Protected _onBeforeRender

  • _onBeforeRender(): void

Protected _render

  • _render(): void

destroy

  • destroy(): void

getFrame

hide

  • hide(): this

initialConfig

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

    • V

    Parameters

    • Optional key: string

    Returns V

isShown

  • isShown(): boolean

loadHtml

  • loadHtml(html: string | Element | JQuery): this
  • Parameters

    • html: string | Element | JQuery

    Returns this

loadUrl

  • loadUrl(url: string): this
  • Parameters

    • url: string

    Returns this

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

reload

  • reload(): this
  • Returns this

render

  • render<T>(): T

show

  • show(): this

title

  • title(): string
  • title(text: string): this
  • Returns string

  • Parameters

    • text: string

    Returns this

toggle

  • toggle(): void
  • Returns void