new module:ct-workbench /messaging /Message Editor()
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
get Element() → {HTMLElement}
Returns:
- Type
- HTMLElement