Caplin Trader 5.1.0

Class: module:ct-workbench/messaging/MessageEditor

module:ct-workbench/messaging/MessageEditor()

new module:ct-workbench/messaging/MessageEditor()

Message service data editor workbench tool component, using PresentationModel module:ct-workbench/messaging/MessageEditorPM.

To configure data fields that may be edited by the user and sent to the component, add code similar to the following to your workbench application:

var messageService = require("service!caplin.message-service");
messageService.updateSubjectData("/FX/GBPUSD", { "Ask": "1.1111", "Bid": "1.1121" });


To use generators to create sample data seeded with the field values provided above, add code similar to the following to your workbench application:

var priceGenerator = new PriceGenerator(["Ask", "Bid"]);
messageService.addDataGenerator(priceGenerator);
Implements:

Methods

getElement() → {HTMLElement}

Implements:
Returns:
Type
HTMLElement