Class
caplin.workbench.messaging

MessageEditor

Constructor Summary

Attributes Name and Description
caplin.workbench.messaging.MessageEditor()

Message service data editor workbench tool component, using PresentationModel caplin.workbench.messaging.MessageEditorPM.

Method Summary

Attributes Name and Description
HTMLElement getElement()

Constructor Detail

caplin.workbench.messaging.MessageEditor()

Message service data editor workbench tool component, using PresentationModel 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 = caplin.core.ServiceRegistry.getService("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);

Method Detail

HTMLElement getElement()

Returns
{HTMLElement}