new module:ct-presenter /node /Component Node(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:ct-component |
The component to be displayed on the page. |
Extends
Methods
get Component() → {module:ct-component /Component}
Retrieve the component stored within this node.
Returns:
The component