Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SimpleView

For simple widgets without data-model. 适合放置一组不需要DataModel的widgets

Hierarchy

Implements

Index

Properties

Protected _config

Protected _eventBus

_eventBus: EventBus = new EventBus(this)

Protected _model

_model: Modelable<any>

Protected _widgets

_widgets: JsonObject<IWidget>

Static WIDGET_ATTRIBUTE

WIDGET_ATTRIBUTE: string = "js-wgt"

Methods

Protected _fire

Protected _newWidget

Protected _render

  • _render(): void

addWidget

config

destroy

  • destroy(): void

destroyWidget

  • destroyWidget(id: string): View

eachWidget

  • eachWidget(fn: (w: IWidget) => void): void

getModel

getWidget

  • getWidget<W>(id: string): W

getWidgets

initialize

  • initialize(): void

off

  • off(type?: string): void
  • Parameters

    • Optional type: string

    Returns void

on

removeWidget

  • removeWidget(id: string): View

render

  • render(): void