Caplin Trader 5.1.0

Class: module:br-knockout/KnockoutComponent

module:br-knockout/KnockoutComponent(sTemplateId, oViewModel)

Constructs a new instance of KnockoutComponent.

Constructor

new module:br-knockout/KnockoutComponent(sTemplateId, oViewModel)

Parameters:
Name Type Description
sTemplateId String

The id of a template to render the presentation model with.

oViewModel Object

A Knockout View Model object instance.

Implements:

Methods

setDisplayFrame(frame)

Parameters:
Name Type Description
frame module:br-component/Frame

A frame provided by the layout manager that this component can attach its visual DOM elements into. Will be called only once.

Implements: