Caplin Trader 5.1.0

Class: module:ct-presenter/node/ComponentNode

module:ct-presenter/node/ComponentNode(oComponent)

new module:ct-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:ct-component/Component

The component to be displayed on the page.

Extends

Methods

getComponent() → {module:ct-component/Component}

Retrieve the component stored within this node.

Returns:

The component

Type
module:ct-component/Component