Class: ComponentMethod

ComponentMethod

new ComponentMethod(name) → {ComponentMethod}

HOMEWORKS COMPONENT Create manager, This is core constructor for making HOMEWORKS COMPONENT.

Parameters:
Name Type Description
name string

COMPONENT Name.

Author:
Source:
See:
  • Refer an example document here.
Returns:
Type
ComponentMethod

Members

init :function

The constructor of Component, This function will be called when Component mapping be started.

Type:
  • function
Source:

method :Object.<function()>

An object wrapped functions, This object is declared Component methods.

Type:
  • Object.<function()>
Source:

options :Object.<Any>

Options decleared by caller, You can default option in ComponentMethod.

Type:
  • Object.<Any>
Source:

template :Object.<String>

An object wrapped templates, This object is declared templates which use in Component.

Type:
  • Object.<String>
Source:

Methods

route(id) → {jQuery}

This function is core of ComponentMethod, This is provider to collecting Component by call patterns.

Parameters:
Name Type Description
id string

Component unique id for give to internel of Component.

Source:
Returns:
Type
jQuery