new Component(model)
Wrapper of a controller and a model
Parameters:
Name | Type | Description |
---|---|---|
model | Model | model of this component |
- Source
Members
controller :Controller|null
component controller, is initialized by a context
Type:
- Controller |
null
- Source
model :Model
component model
Type:
- Source
(static) TYPE :string
Type:
- string
- Source
Methods
getController() → {Controller}
- Source
Returns:
- controller of component
- Type:
- Controller
getModel() → {Model}
- Source
Returns:
- model of component
- Type:
- Model
initController(controller)
Parameters:
Name | Type | Description |
---|---|---|
controller | Controller | controller of this component |
- Source