Caplin Trader 4.7.1

Class: module:caplin/workbench/messaging/MessageEditor

module:caplin/workbench/messaging/MessageEditor

Constructor

new module:caplin/workbench/messaging/MessageEditor()

Message service data editor workbench tool component, using PresentationModel module:caplin/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 caplin.workbench.model.PriceGenerator(["Ask", "Bid"]);
messageService.addDataGenerator(priceGenerator);
Implements:

Methods

getElement() → {HTMLElement}

Implements:
Returns:
Type
HTMLElement