Class
caplin.presenter.node

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.

Constructor Summary

Attributes Name and Description
caplin.presenter.node.ComponentNode(caplin.component.Component oComponent)

Construct a new instance of of ComponentNode.

Method Summary

Attributes Name and Description
caplin.component.Component getComponent()

Retrieve the component stored within this node.

Methods inherited from class caplin.presenter.node.PresentationNode:
getPath, nodes, properties, removeAllListeners, removeChildListeners

Constructor Detail

caplin.presenter.node.ComponentNode(caplin.component.Component oComponent)

Construct a new instance of of ComponentNode.

Parameters
caplin.component.Component oComponent The component to be displayed on the page.

Method Detail

caplin.component.Component getComponent()

Retrieve the component stored within this node.