Constructor
new module:caplin/presenter/node/ComponentNode(oComponent)
Construct a new instance of of
ComponentNode
.
Allows components to be embedded within a presentation model so that they can be displayed as part of the template.
Component
instances can be embedded within a template as follows:
<div data-bind="component_componentNode, width:widthProperty, height:heightProperty"></div>
where componentNode
is an instance of ComponentNode
.
Extends:
Parameters:
Name | Type | Description |
---|---|---|
oComponent |
module:caplin/component/Component | The component to be displayed on the page. |
Extends
Methods
-
getComponent() → {module:caplin/component/Component}
-
Retrieve the component stored within this node.
Returns:
The component