The framework provides two standard dialogs for selecting a market or timeframe. Note: these functions only give you a final result. You don't get an initial creation message from the dialog which gives you the ability to destroy it. You also can't customise the size or style of these dialogs, or set
You can ask the user to select a market using
Framework.SelectInstrument(function (instrumentId) {
if (instrumentId) {
var market = Framework.Instruments.get(instrumentId);
…
} else {
// Cancellation of dialog
}
});
You can ask the user to select a timeframe using
Framework.SelectTimeframe(function (timeframe) {
if (timeframe) {
…
} else {
// Cancellation of dialog
}
});