new ComponentMethod(name) → {ComponentMethod}
HOMEWORKS COMPONENT Create manager, This is core constructor for making HOMEWORKS COMPONENT.
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string | COMPONENT Name. |
Returns:
- Type
- ComponentMethod
Members
init :function
The constructor of Component, This function will be called when Component mapping be started.
Type:
- function
method :Object.<function()>
An object wrapped functions, This object is declared Component methods.
Type:
- Object.<function()>
options :Object.<Any>
Options decleared by caller, You can default option in ComponentMethod.
Type:
- Object.<Any>
template :Object.<String>
An object wrapped templates, This object is declared templates which use in Component.
Type:
- Object.<String>
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. |
Returns:
- Type
- jQuery