Constructor
new module:caplin/workbench/messaging/MessageEditor()
Message service data editor workbench tool component, using PresentationModel
To use generators to create sample data seeded with the field values provided above, add code similar to the following to your workbench application:
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}
-
Returns:
- Type
- HTMLElement