Class: BaseComponent

BaseComponent()

This is the base component

Constructor

new BaseComponent()

Source:

Members

children :Array

Array of child components
Type:
  • Array
Default Value:
  • []
Source:

parent :Component

The parent component
Type:
  • Component
Default Value:
  • null
Source:

Methods

_callAllBindEvents()

Bind events on the component (include all child-components)
Source:

_callAllInit()

Initialize the component (include all child-components)
Source:

_callAllRender()

Render the component (include all child-components)
Source:

addComponent(childComponent)

Add the child component into a component
Parameters:
Name Type Description
childComponent Object The child component
Source:

afterBindEvents()

After bind evnets on the component
Source:

afterInit()

After initialize callback
Source:

afterRender()

After reder component callback
Source:

beforeBindEvents()

Before bind events on component callback
Source:

beforeInit()

Before initialize callback
Source:

beforeRender()

Before reder component callback
Source:

bindEvents()

Bind events on the component
Source:

init()

Initialize component
Source:

isBindEvents()

Returns whether or not binding the events on a component
Source:

isLoopThroughChild()

Returns whether or not the childs of a component is refresh
Source:

isRender()

Returns whether or not the component is rendered
Source:

refresh()

Refresh component
Source:

removeComponent(childComponent)

Remove a child component of a component
Parameters:
Name Type Description
childComponent Object The child component
Source:

render()

Render compoment
Source: